In Android, is it safe to call Activity.finish() from a background thread, or can it only called from the main thread? The documentation doesn\'t mention anything a
Activity.finish()
Probably the result could be unexpected. I'd use a Handler or some other way to send to the activity the order to kill itself in the next iteration.