In my app I need to download files from url locations. I want to display progress of the download in a dialogbox (or optionally in the notification area). I\'ve come across
I would suggest you to go through this link for the dark-side of AsyncTasks: http://bon-app-etit.blogspot.in/2013/04/the-dark-side-of-asynctask.html .
Google has released a library called "Volley" that is used nowadays for faster and better networking .
It solves Bad points of AsyncTasks.
Canceling request using volley