I have 2 Activities A and B. Now these are my objectives.
- When I'm in B and if I press the Home button, the state of the Activity should be saved. (No problem with this.)
- When I start B from A after step 1 a new instance of B should be created (i.e) Previous state should be discarded.
But in Step 2 the state of B still prevails. How do I accomplish my objective?