Using android sdk 2.3. How can I synchronously update the UI from a service. I just need to update a text view in an Activity but it has to be synchronous, so my worker thread needs to stop for a bit. On iOS there is performSelectorOnMainThread waitUnitDone
I can’t find a waitUntil done on Android using runOnUIThread etc
Thanks
there are multiple ways to update UI in android after completing task in worker thread. you can go for Handler. Other way to do this efficiently is by using AsyncTask.
runOnUithread is also one of the option.