Re: [android-developers] Parsing a JSON response

2011-03-10 Thread Mark Murphy
On Wed, Mar 9, 2011 at 11:20 PM, David Williams dwilli...@dtw-consulting.com wrote: Thanks for the reply.  Perhaps I need to revisit PhoneGap.  I did take a quick look but didn't get very far with it. It certainly seems to be a closer match to WebOS development than is standard Android SDK

[android-developers] Parsing a JSON response

2011-03-09 Thread David Williams
All, Again, I'm new to all of this but fell I'm making some headway with Java and Android. So, I am using the code below to call a php program on my webserver that performs a check and returns a JSON object. *try { // Construct data String data = code= + imei +

Re: [android-developers] Parsing a JSON response

2011-03-09 Thread Mark Murphy
On Wed, Mar 9, 2011 at 11:01 PM, David Williams dwilli...@dtw-consulting.com wrote: So, I can see that retInit is getting this return string, but is there an easy way of breaking down this JSON object so that I can check (for example) the value or errcode ? Check out the org.json package in

Re: [android-developers] Parsing a JSON response

2011-03-09 Thread David Williams
Mark, Thanks for the reply. Perhaps I need to revisit PhoneGap. I did take a quick look but didn't get very far with it. David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: