Android: an‘t toast on a thread that has not called Looper.prepare

   Looper.prepare();                         Toast.makeText(getApplicationContext(),strTemp,Toast.LENGTH_LONG).show();
  Looper.loop();

Guess you like

Origin blog.csdn.net/amadeus_liu2/article/details/114885210