Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant insert a string in android resource file without getting an error

How an I suppress this error:

<resources>
<string name='app_name'>PhoneMates</string>
<string name='app_url'>phonemates</string>
<string name='dom_url'>http://example.com/services/directlinkhandler.ashx?wid=124962546435&LinkID=1133&queryid=138&cid=8&promocode=GTJRPM</string>
<string name='loading'>Loading...</string>

It points me to the dom_url link and tells me that there has been an error. The reference to LinkID must end with ';' delimiter.

How can I prevent/suppress that error, while maintaining the link?

like image 992
Dmitry Makovetskiyd Avatar asked Apr 19 '12 14:04

Dmitry Makovetskiyd


1 Answers

Try replacing your & (ampersands) with &amp;.

I have confirmed that this works in my environment. The reason is that it will think everything past the ampersand is an ampersand character code.

like image 95
tyler Avatar answered Nov 09 '22 01:11

tyler