问题:
原子线程调用Toast报Can't create handler inside thread that has not called Looper.prepare() 错误
今天用子线程调Toast报了一个Can't create handler inside thread that has not calledLooper.prepare()错误。
解决办法:
Looper.prepare();
Toast.makeText(getApplicationContext(), "test", Toast.LENGTH_LONG).show();
Looper.loop();
转自:https://blog.csdn.net/sunhuaqiang1/article/details/46839045
具体原因请看原博