tags:

views:

32

answers:

1

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

A: 

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.

Andy Zhang