I want to convert a push message from server with a string with special characters.
I use JSONObject
to convert it before using the text.
This is my message from server :
{"aps":{"alert":{"body":**"push message 4 test Close Notification in \"Android\" PU45"**,"action-loc-key":"OK","screenId":"110","sdata":"sid=SER020","launch-image":"appicon"},"sound":"ring1"}}
.
Highlighted in bold is my string. I want to escape the double quotes in the string, since the substring Android should be shown as text with double while showing in the popup.
Can anyhelp on this issue?
Thanks all in advance, Janardhan.