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() inside AsyncTask
最新推荐文章于 2023-11-02 23:10:51 发布