0

As a follow up to (this question):

I'm curious what if any event is fired when an Activity dies a painful death. My intention is to not leave any Activity on the stack living and I'm happy to start them all with startActivityForResult() as the answer in the above thread suggests, but I'm concerned that no result is sent back if the activity that's supposed to send back the flag crashes rather than exits organically.

Community
  • 1
  • 1
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236

1 Answers1

1

http://developer.android.com/reference/android/app/Activity.html

If a child activity fails for any reason (such as crashing), the parent activity will receive a result with the code RESULT_CANCELED.

haseman
  • 11,213
  • 8
  • 41
  • 38