【发布时间】:2012-06-28 16:46:48
【问题描述】:
06-28 12:07:10.881: E/(930): {total=21 secs, date2=28-06-2012, time2=9:43:09 AM, time1=9:42:48 AM, date1=28-06-2012}
06-28 12:07:11.131: E/testing(930): exception:android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
06-28 12:07:11.160: E/(930): {total=24 secs, date2=28-06-2012, time2=10:45:02 AM, time1=10:44:38 AM, date1=28-06-2012}
06-28 12:07:11.601: E/testing(930): exception:java.lang.IllegalArgumentException: The observer is null.
【问题讨论】:
-
您正在尝试从非 UI 线程更新 UI 元素...
-
确保您没有从新线程或 AsyncTask 调用它。请参阅stackoverflow.com/questions/5185015/…