I would like to achieve the following behaviour, but I\'m not sure how:
1. User start an activity
2. Activity starts an AsyncTask
3. After initiating th
You can create interface, pass it to the AsyncTask (in constructor), and then call interface method in onPostExecute..and make your second activity implements this interface..
For example:
Your interface:
public interface OnTaskCompleted {
void onTaskCompleted();
}
Your second Activity:
public MyActivity implements OnTaskCompleted {
//your Activity
}
And your AsyncTask:
public YourTask extends AsyncTask