摘要: 1.如果是同一个线程(或者是主线程)里,可以直接进行UI内容的更新,如果是两个不同的线程,更新则会报错,可以用Handler+Runnable来进行不同线程的UI更新报错代码(报错内容:ERROR/AndroidRuntime(785): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.):public class MainActivity extends Activity{ pr... 阅读全文
posted @ 2012-02-14 16:45 麦芽糖! 阅读(390) 评论(0) 推荐(0) 编辑