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
Post a Comment