Run AsyncTask in sequence [closed]

1

I am running AsyncTask on the oncreate and onselecteditem of three spinner the problem occurs when it will run the third AsyncTask it does not run the doInBackground and jump to the onPostExecute.

I wanted to execute more than three AsyncTask only executes two.

urlcarregaspinEstados = "http://listarapido.esy.es/estados";
urlcarregaspinCidades = "http://listarapido.esy.es/carregarcidadesporestado/" + "AC";
urlcarregaspinBairros = "http://listarapido.esy.es/carregarbairroporcidade/" + "Acrelãndia";

new ClasseGetDadosDB(this,urlcarregaspinEstados,"sigla_estado").execute();
new ClasseGetDadosDB(this, urlcarregaspinCidades,"nome_cidade").execute();
new ClasseGetDadosDB(this, urlcarregaspinBairros,"nome_bairro").execute();
    
asked by anonymous 18.02.2017 / 19:42

0 answers