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();

猜你喜欢

转载自blog.csdn.net/amadeus_liu2/article/details/114885210