Listview in Android while getting data from a server -
i trying populate data listview asynchronously i retrieving data server json response mainactivity.java public class mainactivity extends activity { // url make request private static string url="http://54.218.73.244:7002/"; listview yourlistview; list<item> yourdata = new arraylist<item>(); progressdialog progressdialog; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); yourlistview = (listview) findviewbyid(r.id.listviewid); //instantiating progressdialog oncreate method progressdialog=new progressdialog(mainactivity.this); new parsingasync().execute(); } private class parsingasync extends asynctask<void, void, void> { @override protected void onpreexecute() { // todo auto-generated method stub super.onpreexecute(); ...