Setresult Not Working When Activity Finished By Cleartop
Overview of Problem: ActivityA starts ActivityB with startActivityForResult. ActivityB sets its result using setResult and then starts ActivityC with startActivity. ActivityC then
Solution 1:
I think that from a user's perspective it will feel very strange that you are "starting" a previous activity (A) from a later activity (C), instead of just "going back" to it.
I believe you should start C from B with startActivityWithResult()
. Then when activity C is done call finish()
. In B's onActivityResult()
call setResult()
and then finish()
.
Post a Comment for "Setresult Not Working When Activity Finished By Cleartop"