How to finish "Activity A" since "Activity B"? (Finish an Activity since other)
I'm trying to finish the Activity A since Activity B when it will finish too. The Activity B was launches since Actvity A.
So I've paused the 开发者_C百科Activity A. How can I do it?
You may try using startActivityForResult() on the Activity A to invoke the Activity B.
And then, before calling finish() on the Activity B, you should call setResult() and call finish() on the Activity A in onActivityResult()
Example here
精彩评论