AlertDialog报错的有关问题解决

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