I have a doubt about asynctasks. In my application, i have two activities. The first activity as an async task that receives data, and in the second activities i have other asynctask to also receive data but also another async task that will send data. The problem is: When i go to the second activity, and i send data, i want the async task of the second activies receive that data, but it's the async task from the first activity that is receiving.
Anyone can help me finding a way to kill a async task when i change from one activity to another?