ah thanks for the class!

On Tue, Mar 31, 2009 at 11:42 AM, deepdr...@googlemail.com
<deepdr...@googlemail.com> wrote:
>
> private CharSequence[] strings;
>
> Resources res = getResources();
> strings = res.getTextArray(R.array.secondlines);
>
> res/values/array.xml :
>
> <?xml version="1.0" encoding="utf-8"?>
> <resources>
>    <string-array name="secondlines">
>                <item>...</item>
>                <item>...</item>
> ...
>     </string-array>
> </resources>
>
> --
> http://www.deepdroid.com
>
>
> On Mar 31, 4:40 pm, Brad <bradallenful...@gmail.com> wrote:
>> I've searched high and lo for this but I might be missing something
>> that is staring me in the face, but for the life of me I can't find
>> it. I just want to read <string-array> resource elements into a String
>> array. I don't want to make a view or anything and mess with adapters
>> -  just want to transfer the elements. Is there a built in class for
>> this? Or do I need to treat the resource file as a regular file?
>>
>> thanks!
> >
>



-- 
Brad Fuller

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to