Can't create handler inside thread that has not called Looper.prepare()

参考 https://blog.csdn.net/sunhuaqiang1/article/details/46839045

Looper.prepare();
Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_SHORT).show();
Looper.loop();
原文地址:https://www.cnblogs.com/white-knight/p/9753831.html