I have hybrid app where every page is loaded inside a WebPageActivity(webView). I don't want to create a new activity for every screen but create multiple instances of same activity for each hybrid html page.
Following is the requirement,
Navigation Stack:
A -> B -> D -> E
Here all activities in stack are of type WebPageActivity and every instance is drawing different html.
When user clicks on some button on activity 'E', then it should bring existing 'B' to foreground and clear top, resulting in following stack,
A-> B
Summary:
All the activities in the stack are of same type but having different views and it is required to go back to some activity in stack with clear top.
Available data:
- Every activity holds property identifying the name of html file.
- Whenever I want to back to activity in the stack, I know the name of html that will be present in that activity.