解决Can't create handler inside thread that has not called Looper.prepare() inside AsyncTask
2012-08-14 19:29
387 查看
class LoadData extends AsyncTask { private Handler mHandler = new Handler(Looper.getMainLooper()); @Override public void run() { // ... mHandler.post(new Runnable() { public void run() { } }); // ... } }
相关文章推荐
- 错误解决 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()解决方法
- 解决bug:运行项目时报异常 “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() 错误有关问题
- android异常收集-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()
- Android开发报错 Can't create handler inside thread that has not called Looper.prepare()
- Android java.lang.RuntimeException: 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()
- CountDownTimer 导致的一个崩溃 (Can't create handler inside thread that has not called Looper.prepare())