My activity stack is ABC, and C is on top. Started B using startActivityForResult ().
Now, in C, it launches A and clears the top using the following code:
finish(); intent = new Intent(this, A.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent);
My question is, will onActivityResult () be called after executing the code above? I expected this to happen because B crashes after C launches A and clears the top. But my test code showed that onActivityResult () in was not called. I'm confused. Can anyone help?
Thanks.
android
Kai
source share