[android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Rahul
I could successfully get the Json values by using the method explained by Jose... Thanks to Jose once again. Now i m trying to display all the values of the Json into a list view using the adapters. But i m getting a null pointer exception while running the app... Can anyone tell me what the

[android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Rahul
Here's the log errors i m getting... 04-30 13:09:46.656: INFO/ActivityManager(584): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1000 cmp=com.WorldToyota/.Alerts } 04-30 13:09:50.417: ERROR/JSON(924): There was an error parsing the

Re: [android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Jose Gomez
Rahul As a followup go to my site again I have posted another tutorial to do this http://www.josecgomez.com Thanks! Sincerely Jose C Gomez http://www.josecgomez.com On Mon, May 3, 2010 at 9:20 AM, Rahul rahulvarma.kalidindi0...@gmail.comwrote: Here's the log errors i m getting... 04-30

[android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Brion Emde
Your problems are right up on top of your log. It is not correctly parsing your JSONObject. As I said earlier, you need to figure out your parsing. I took a different approach to writing my own adapter, although I think I did that too, in some iteration or other. I create a generic JSONArrayList

[android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Rahul
Thanks Jose and Brion for ur support. Jose's post worked like a wonder. Got to know what mistakes i made... I m really thankful to you for solving my problems with coding. It will be very helpful for developers, especially for amateurs like me... Thank u very much once again... KUDOS to Android

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Rahul
I have done the following. But still i cant get the result... Can anyone help me determine what the error is...Pl help me out... public class AlertsAdd { public ArrayListJSONObject retrieveJSONArray(String urlString) { String result = queryRESTurl(urlString);

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Brion Emde
I don't see a problem. You should look at your log file or post it. Have you traced through your code via the debugger? That is a good way to see what is happening. On Apr 30, 6:16 am, Rahul rahulvarma.kalidindi0...@gmail.com wrote: I have done the following. But still i cant get the result...

Re: [android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Jose Gomez
Rahul, This should solve your problem if you get stuck let me know. I just wrote this specifically to address your problem and for my own reference http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/ Sincerely Jose C Gomez http://www.josecgomez.com On

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Rahul
Here's how the errors in the log looks like... Tried different ways to fix the problem. but of no use... 04-30 13:09:46.656: INFO/ActivityManager(584): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x1000 cmp=com.WorldToyota/.Alerts }

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Rahul
Really thank you Jose for posting the code. I'll definitely try it out and let you know if there are any further issues. Regarding the logcat, Hey Brion,I have posted wrong log cat in the above posts. Sorry for that... Below you can see the exact log cat errors... 04-30 13:09:46.656:

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Brion Emde
That first logcat you posted was pretty interesting. It was telling you that what you are getting back from you webservice is a JSONArray, not a JSONObject, as you are assuming it is. They aren't the same thing. You need to get clear on what you are expecting with what they are sending or you are