I'm developing an android application, so i have a nice GUI with many buttons. Every one when clicked, declenche w new task to load data from distant server (for that i'm using Hessian). for more detail: supposing we have two buttons:
- the first one for loading Events and the other for doing something else.
- when i click on the first one and before the load is complete, i clicked on the other button.
- at that time i want to annulate the first task(i'm using AsyncTask) and start the second. How can i do it?