views:

101

answers:

2

Hi, I have been searching for a way to get the json data from a URl (for example: http://search.twitter.com/trends.json) and display it in a listview. Couldnt get a perfect example to get it done. Can anyone plz help me out by getting the solution and providing a good example of how to do it...

A: 

Android comes with Json-lib so parsing JSON is easy. You just need to use the HTTPclient classes to retrieve the data from the URL, and you can use the JSONObject class to parse the JSON. And write a ListAdapter to pull data from the JSONObject.

BrennaSoft
Can u please provide me a working example of how to do it coz i m still a newbie... PLzzzzz
Rahul Varma
A: 

found this tutorial : http://damonsk.com/2010/01/jsonarray-httpclient-android/

Justin O