Problem with & and double quotes in my Android app Problem with & and double quotes in my Android app android android

Problem with & and double quotes in my Android app


In XML strings for & (ampersand) you need to use & and quotes (single or double) need to be escaped,

<string name="with_amp">I, Me & Myself</string><string name="with_quotes>Single quote \' and Double quotes \"</string>


Instead of & you have to use & check in the following statements

test&

<string name="url">http://xxxxxxxxxxxxxxxxxxx/test.php%3Fcode_hash%3Da8c159f35af&guid=ON</string>


To use the symbol & in your strings.xml file, you need to use the appropriate XML character entity.
For ampersand, use &.