What if I need to run another async task being in another async task, meaning in onPostExecute() method, how to do so?
onPostExecute()
You can try the following code to create a NewAsyncTask in onPostExecute and then execute the new task.
NewAsyncTask
onPostExecute
@Override protected void onPostExecute(String result) { NewAsyncTask newtask = new NewAsyncTask(); newtask.execute(); }