I use GCM for push notification on a mobile phone using this example , and the notification is pressed. But I could not parse the package received from the intent. This is the package I received from the magazine Bundle[{message={"valid":"bbb","deal":"its working","address":"some","name":"aaa"}, android.support.content.wakelockid=1, collapse_key=do_not_collapse, from=198162727742}] , and I converted it to a string and then tried to convert to a json object using this code json = new JSONObject(message); but no luck. can someone tell me what i am doing wrong here. thanks in advance
json android bundle
Mithran
source share