I am bringing mysql data from mysql database using JSON and Putting data
into JSONArray. Now i have ListView in my Main.xml. I am facing problems in
mapping this JSONArray data to the ListView.
*Here is my Sample Code*
for (int i=0;i<JSONArray.length();i++)
{
String data=JSONArray.getJSONObject(i).getString("Name");
server.add(data); // ArrayAdapter<String> server=new
ArrayAdapter<String>(this,android.R.layout.simple_list_Item_1);
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en