Reputation: 15432
As explained by many developers, the AsyncTask
have an inconvenient: they induce leaks in some situations (for example, when the screen is rotated (and thus the activity restarted) during the AsyncTask
execution).
I would like to avoid the use of AsyncTask
and use either:
OR:
Questions:
AsyncTask
?Upvotes: 1
Views: 809
Reputation: 2394
I actually use both libraries: RoboSpice for its service-based networking tasks and caching, and Android Annotations for getting rid of the boilerplate code, dependency injection and neatness. Recently I've written a blog post about combining the two in one app: http://blog.goyello.com/2014/06/26/androidannotations-robospice-the-best-of-both-worlds/. You'll find my sample on Github (https://github.com/ddekanski/SpiceAnnotations).
Upvotes: 1
Reputation: 597
Upvotes: 0