Can't create handler inside thread that has not called Looper.prepare()解决方法
来源:互联网 发布:淘宝退款会影响信誉吗? 编辑:程序博客网 时间:2024/06/16 11:51
这个错的意思是不能在线程中创建没有调用Looper.prepare()的处理程序
解决的方法是:在调用Toast(或者AlertDialog)的地方的前面加上Looper.prepare(),后边加上Looper.loop()即可解决问题;
Looper.prepare();Toast.makeText(XinpinyushouAddActivity.this,"点击了一下",Toast.LENGTH_LONG).show();Looper.loop();
阅读全文
0 0
- Can't create handler inside thread that has not called Looper.prepare() 终极解决方法
- 异常Can't create handler inside thread that has not called Looper.prepare() 解决方法
- Can't create handler inside thread that has not called Looper.prepare() 终极解决方法
- Can't create handler inside thread that has not called Looper.prepare()的终极解决方法
- Can't create handler inside thread that has not called Looper.prepare() 终极解决方法
- Can't create handler inside thread that has not called Looper.prepare()解决方法
- 解决Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask
- Handler——Can't create handler inside thread that has not called Looper.prepare()
- Handler机制和Can't create handler inside thread that has not called Looper.prepare()异常
- new Thread 时产生错误:Can't create handler inside thread that has not called Looper.prepare() 的解决方法
- Can't create handler inside thread that has not called Looper.prepare()错误的解决
- Can't create handler inside thread that has not called Looper.prepare() 异常
- Can't create handler inside thread that has not called Looper.prepare()
- Can’t create handler inside thread that has not called Looper.prepare()
- Can’t create handler inside thread that has not called Looper.prepare()
- Can't create handler inside thread that has not called Looper.prepare()解决办法
- Can't create handler inside thread that has not called Looper.prepare()错误的解决
- Can't create handler inside thread that has not called Looper.prepare()
- 小程序微信支付申请
- 除了IPv4,还有IPv5、IPv6、IPv7和IPv9,IPv10
- 原型模式的深浅复制和序列化
- CSI.Bridge.2017.Advanced.v19.0.0.1294.Win32_64 2CD
- 自定义控件之绘图篇:Path之贝赛尔曲线和手势轨迹、水波纹效果
- Can't create handler inside thread that has not called Looper.prepare()解决方法
- jsp和js文件中获取EL表达式的值
- ECSHOP如何解决Deprecated: preg_replace()报错
- GRU神经网络
- 图解HTTPS
- 简单绘制饼状图
- MySQL数据类型
- shell之test 命令
- Java面试