Suppose my activity ui-thread spawns a separate thread at some point. Is it safe for that new thread to fire off an Intent for launching a new activity?
Thanks
Suppose my activity ui-thread spawns a separate thread at some point. Is it safe for that new thread to fire off an Intent for launching a new activity?
Thanks
I could be wrong, but I think startActivity()
internally executes in the UI thread. So yes, it should be safe.
If you wanted to be 100% sure, invoke your startActivity()
in your activity's runOnUiThread()
as a Runnable
.