Wednesday, November 14, 2012

Re: [android-developers] Is it possible to (easily) get the contents of a custom xml file in /res/values?

You could create a <resources> xml file on /res/values and access easily using

String aString = getResources().getString(R.string.one_string);

Marina

On Tue, Nov 13, 2012 at 11:14 AM, Edmundo Carmona <eantoranz@gmail.com> wrote:
> Hi!
>
> Say, I want to move some of the strings in strings.xml to a separate xml
> file. Say it's /var/res/myfile.xml. How can I in java get access to the
> strings defined in that file?
>
> Thanks in advance.
>
> --
> 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

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate