how to update ui from other thread?
Answer / Santosh Kumar Dixit
To update UI from another thread, you can use a Handler object. Create a Handler in the main UI Thread and pass it to the worker thread. The worker thread can then use the Handler's sendMessage() or post() method to send a message containing the data that needs to be updated on the UI thread. In the handleMessage() method of the Handler, update the UI.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which are the different tags that are required to create reusable user interface that include the layout?
Can I write code for android using c/c++?
What is a Dalvik ?
What is .dex extension?
Explain the difference between service & intent service?
What is android ndk?
Is jelly bean a version of android os?
What is a portable wi-fi hotspot?
What is assets folder in android?
How does auto sync work on android?
Explain implicit and explicit intents.
What main/assets/ directory contains?