您的位置:首页 > 运维架构

解决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() {
          }
       });
       // ...
     }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  thread class
相关文章推荐