1.只有主线程可以更新UI,解决应用handler向主线程发送消息
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
- ` 待解决
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
at com.example.xiaozhen.mynewapplication.ShopActivity$1.handleMessage(ShopActivity.java:47)