E/JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7931)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1283)
at android.view.View.requestLayout(View.java:22139)
at android.view.View.requestLayout(View.java:22139)
at android.view.View.requestLayout(View.java:22139)
at android.view.View.requestLayout(View.java:22139)
at android.view.View.requestLayout(View.java:22139)
at android.view.View.requestLayout(View.java:22139)
at android.support.constraint.ConstraintLayout.requestLayout(ConstraintLayout.java:3172)
at android.view.ViewGroup.onSetLayoutParams(ViewGroup.java:7450)
at android.view.View.setLayoutParams(View.java:15256)
at com.yh.stresstesttool.com.yh.util.APPCommon.drawTable(APPCommon.java:101)
at com.yh.stresstesttool.com.yh.util.APPCommon.showDataTable(APPCommon.java:141)
at com.yh.stresstesttool.IDCardReadActivity.saveTestRecord(IDCardReadActivity.java:105)
at com.yh.stresstesttool.MyIDCardReaderListener.onIDCardReaderResult(IDCardReadActivity.java:161)
at com.abc.deviceservice.aidl.normalreader.IDCardReaderListener$Stub.onTransact(IDCardReaderListener.java:53)
at android.os.Binder.execTransact(Binder.java:675)
主线程才能操作界面 ,上面的错误是因为用子线程刷新页面导致。
不能直接刷新,要用消息通知主线程刷新 handler
具体使用请参考 https://blog.csdn.net/qq_37321098/article/details/81535449