I implemented an AsyncTask in my app and encountered exceptions like IllegalArgumentException. I asked question on stack overflow somebody said I shouldn't use AsyncTask in apps for the following reasons.
- AsyncTasks don't follow Activity instances' life cycle
- Memory leak issue
- Progress of your task will be lost
I was recommended Robospice and also told consider this thread AsyncTask is not really the best tool to create network requests on Android. use RoboSpace
Can anybody tell me what is best option to use access network asynchronously? What should I use AsyncTask or RoboSpice?