Issue
Now I have HomeActivity -> Activity A -> Activity B -> Activity C
After I finish Activity C I expect to see HomeActivity. How can I handle this flow with Intent Flags or any other suggestions?
edit
But Activity A and Activity B should be removed from the stack when Activity C appear.
Activity A B and C this a workflow, So A can go to B and B can go back to A to edit something, After I Submit in B then A and B should be gone and show C as a confirmation
Solution
Using launch modes you can achieve this. use Single Task for the Activity C in manifest file
<activity android:name=".ActivityC"
android:launchMode="singleTask">
Answered By - Basavannevva
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.