Android – update the user interface inside the thread with runonuithread()
•
Android
Can I use runonuithread() to update the user interface within the thread when running the thread, or is the handler more efficient
resolvent:
Yes, you can use runonuithread() from a non UI thread to update the UI. If you are not currently on the UI thread, this method uses the handler internally, so using your own handler will not be more efficient. If you are already on the UI thread, the runnable object will execute immediately
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码