How to create and update listview using AsyncTask getting data from server.Actually i am facing the problem for updating the listview i am using the handler and after some second i got update listview but the hadler class continue and when i start new activity related to my app same time if handler is called then my app is being crashed.
How to create and update listview using AsyncTask getting data from server.Actually i am
Share
It’s ok if you couldn’t find the answer before posting this question.AsyUncTask has the method onPostExecute() that runs in the UIThread once doInBackground() gets completed.You can update your listview in onPostExecute() method once you have got data from server in doInBackground() method thats spawns a new thread.