I have an app with two activities. From the main activity I start a secondary activity using startActivityForResult()
. The secondary activity returns data (in the form of an Intent
object) to the main activity. On the main activity I have a method onActivityResult()
to handle the come back from the secondary activity.
Within this onActivityResult()
method, I need to update a View
on the main activity (to reflect the new data values). I do not explicitly spawn any threads. My question is: can I directly modify the view from within onActivityResult()
method, or do I need to put an event on the UI queue to do it? To be more explicit: can I be sure that the onActivityResult()
method is on the UI thread, and in that case can I forget about the UI queue?