I am facing some problems when I\'m using Toast inside run method of Thread class.
My error Logcat
09-16 11:42:38.140: E/AndroidRuntime(1446): in wri
You've to call the Toast on UI thread.
AsyncTask onPostExecute runs on UI thread. If you want to "force" a UI thread, you can use the following code inside onBackground:
// code runs in a thread runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(....).show(); } });