Getting a string array from strings.xml in xamarin Android -


i have string array in strings.xml looks this:

<string-array name="helppages">     <item>hello, dos-bot, , guide through game.</item>     <item>in game learn how use computer terminal or console.           important tool dealing technical problems on computer.</item>     <item>for common user, terminal can useful figuring out problems           related internet connectivity, corrupted or damaged files , many more. </item>   </string-array> 

and want access in 1 of activities. i'm doing following:

string[] pages = getstringarray(resource.array.helppages); 

but it's not working.

i :

string[] pages = getresources().getstringarray(r.array.helppages);


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -