> I'm probably missing something obvious, but for some reason I don't
> manage to put a string with double quotes in a resources file.
>
> strings.xml:
>    <resources>
>       <string name="message_empty_folder">Folder &quot;%s&quot; is
> empty.</string>
>    </resources>
>
> LIstFolderActivity.java:
>    String format = getResources().getString
> (R.string.message_empty_folder);
>    System.out.println(format);
>
> Log output:
>    Folder %s is empty.
>
> What's eating up the double quotes?

Try using \" and see if that works.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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

Reply via email to