I am trying the new Android P Developer Preview, and the secenario is as follows:
- I call Activity B from Activity A with startActivityForResult
- Finish Activity B with SetResult and go back to Activity A, the Activity Life cycle used to be (Prior to Android P Preview):
- onActivityResult
- onStart
- onResume
(Here also a post that confirms this order Execution order of OnActivityResult and OnResume) answer from rndstr
Now While testing the Android P Preview the Activity lifecycle is:
- onStart
- onActivityResult
- onResume
Android Documentation https://developer.android.com/reference/android/app/Activity#onactivityresult says only that onActivityresult should come before onResume, it says nothing about onStart
can anybody help ? is this a bug in Android P Preview or this is a new behavior? is there a good documentation for this?
I am using targetSDK: 23
Activity A is: SingleTask and Activity B is: SingleTop