java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
在解决这个问题时,觉得以下比较有用
为了正确的使用AsyncTask类,以下是几条必须遵守的准则:
1) Task的实例必须在UI thread中创建
2) execute方法必须在UI thread中调用
3) 不要手动的调用onPreExecute(), onPostExecute(Result),doInBackground(Params...), onProgre
转载
2013-10-11 17:23:26 ·
7397 阅读 ·
0 评论