[Solved] how to show toast in getDataTaskmethod? [duplicate]
Your toast message is within the parseJsonData method which is called from the doInBackground method of your asynctask. You can not update the user interface thread from a background thread. You have two options here 1) You can publish the progress publishProgress(1) of the thread passing in an integer value to be used as a … Read more