myMapView.invalidate(); }这似乎在一些测试设备上工作得很好,但我看到在开发控制台上出现了很多错误我似乎搞不清楚为什么要把这个Looper.prepare()放在哪里。需要这样做吗?:289)
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare<init>(A
在我的应用程序中,我尝试通过AsyncTask从webservice中检索数据。在这段代码中,我将长操作放到了AsyncTask中,但我得到了这个错误:java.lang.ExceptionInInitializerError467):
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare&qu
我想使用AsyncTask在服务器上更新我的db4o。在doInBackground方法中,我连接到服务器,更新db4o,并计划挂起意图。不修改UI或显示任何toast。最初,我有以下错误:添加Looper.prepare()之后,可以正常工作,但仅适用于五个更新(AsyncTask)。executing doInBackground()
at an
我正在使用AsyncTask执行一个长时间运行的任务,但我得到了以下错误。doInBackground====java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
为什么我会得到这个错误,它是什么意思?