AlertDialog报错的问题解决
使用AlertDialog时候报错:
Can't create handler inside thread that has not called Looper.prepare()
需要调用activity的runOnUiThread()方法,在run()写上调用的语句。
这里是需要刷新UI线程的
发布时间: 2012-09-15 19:09:28 作者: rapoo
AlertDialog报错的问题解决
使用AlertDialog时候报错:
Can't create handler inside thread that has not called Looper.prepare()
需要调用activity的runOnUiThread()方法,在run()写上调用的语句。
这里是需要刷新UI线程的