This is a simple doubt of me.
I had a android application with 10 activities. There is some web connection from each activities. So each and every activity I wrote a ASYNC Task for connecting to web service.
Instead of that is there is any method for a common class which handle the webservice and return the data available ?
Something like this ( rough )
My Activity -> Create a JSON for sending to server -> Call the WebserviceClass -> Send those JSON to that webservice Class -> Webservice will read the JSON -> Send to Server -> Return the status / result ( JSON) to "My Activity" -> Parse the JSON and so on ....
By this I can control all the webservice functionality with a single class
I am very new to android app development and please help me
Thanks in advance