Saturday, September 24, 2011

Re: [android-developers] Listing all top level elements in strings.xml

You can use Java reflection on the R.strings class. This can be slow,
but will provide you with the necessary data.

25.09.2011 0:49, jpathak пишет:
> Hi,
>
> I wanted my application to be able to discover what string resources
> (including string arrays, but only the name of the string array) it
> has, on startup at runtime. I didn't find a way to do this in the API
> docs, or perhaps I'm missing something. Can someone help ?
>
> Thanks,
> -Jay.
>

--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment