Official Android String Resource Guide
Please read the Official Android String Resource Guide – you will find a lot of useful information regarding the CORRECT
usage of strings. Some characters you need to escape, while others you may need to enclose in double quotes (“).
Escaping Strings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | This\'ll work -- OK "This'll also work" -- OK This doesn't work -- Causes a compile error This is a \"good string\". -- OK This is a "bad string". -- Quotes are stripped; displays as: This is a bad string. 'This is another "bad string".' -- Causes a compile error |