关于在非UI线程中进行UI操作会出现问题: Can't create handler inside thread that has not called Looper.prepare()
Activity,Service属于主线程,在主线程中才能更新UI,如toast等。其他线程中不能直接使用,否则产生 Can't create handler inside thread that has not called Looper.prepare()的错误,这时可以使用Handler来处理,Handler可以在Activity和Service中。
功能:当在非UI线程中调用CallPa
原创
2012-01-11 12:42:13 ·
1939 阅读 ·
0 评论