I have a AsyncTask
which works fine but I want to implement another AsyncTask
. My question is whether two subclasses can be done within a class and that each of the subclasses implements AsyncTask
. Is my approach correct?
I have a AsyncTask
which works fine but I want to implement another AsyncTask
. My question is whether two subclasses can be done within a class and that each of the subclasses implements AsyncTask
. Is my approach correct?
If you can do it, but you can only call your second Asynctask
from the methods
onProgressUpdate ()
or from
onPostExecute ()
of your first AsyncTask
.
It would be something like that from your first Asynctask
:
@Override
protected void onPostExecute(String result){
super.onPostExecute(result);
llamadaSegundoHilo(misParametros)
}