Currently the structure of the android app is
Home
   About us
   Products
     product1
     product2
     product3
   Contact us
As there is a side-menu and I can access the product 1 directly, My current attempt is add to backstack for every transaction,and it has a behavior that is quite strange
If I go into like this:
Home->product1->About us
The flow is after I enter the home page, I click on the product1 on the side menu, after enter product1 page click on the about us on the side menu
1st time press back button, it will go back to product1, but it should go to home
2nd time press back button, it will go to home, but it should go to the Products page
How to handle the backstack in such situation? Thanks for helping.
 
     
    