Search code examples
androidandroid-asynctaskonresume

Call onResume() method from Asynctask's onPostExecute() Method


I am calling Asynctask and after complition of doInBackground(String... arg0) i want to call onResume() in onPostExecute() Method.


Solution

  • Afte AsyncTask Complete put this line in onPostExecute()

    notifyDataSetChanged();
    

    This Will call onResume() Automaticly

    or if this is not Work then call Dialog box. when Dialog box open Activity gosein onPause() and when DialogBox is close it will call onResume() this will work