I had a activity which contains one button and a listview.The listview contains values from webservice.When i clicked on this listview item,it shows the details in another activity.
So the thing is, can we use 4 asynctask inner class in a single activity.
ie one for initial loading of contents in listview,Second will call when i click each list item,and third one for when i move to next page in listview(Listview shows only 10 items/page) and fourth will call when i clicked the button.
Is that the right method?
Yes , its right . U can as many times as u want to call . But a small modification can be done , instend of call 4 AsyncTask , u can one AsyncTask by making its generic in flow .
`
Now u can call this class when ever u want to interact with ur server.