AS multithreading can only change the UI on the main thread

Make a demo to add the contact details of the contact, and I tried it, sure enough, the Insert picture description herefollowing error is reported. The Process: com.example.contactor_add_read, PID: 21622 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
test is over!

Guess you like

Origin blog.csdn.net/qq_41446977/article/details/112390328