I have tasks completed by AsyncTask in background. At some point I need to issue a Toast that something is completed.
I\'ve tried and I failed because Caused
Caused
If you want to display the Toast in doInBackground, you can use it in the OnPostExecute method of AsyncTask.
protected void onPostExecute(String file_url) { Toast.makeText(getApplicationContext(),"Your Message", Toast.LENGTH_LONG).show(); pDialog.dismiss();//dismiss the progress dialouge }