10
When implementing calls to a webservice I have been working with the following scheme: I implement a class that extends AsynkTask
and within the method doInBackground()
make the call to my service. A peculiarity here, is that instead of using the class HttpUrlConnection
I’ve been using a framework spring, Spring for Android, which provides a number of facilities, among them the cohesion of the code.
Although it works perfectly this scheme is somewhat unproductive and even tiring. Because, for each request need to implement a new AsyncTask
.
Is there any good practice, even unofficial, or some approach that the community has adopted in order to facilitate the development of calls to a webservice and decrease the amount of code implemented for this purpose?
See if this answer helps you http://answall.com/questions/53758/comunica%C3%A7%C3%A3o-do-app-com-servidor-web/53761#53761
– rsicarelli