There are three screens-A,B,C
now <b>A-main search screen</b>
It has two buttons-<b>create an activity</b> and <b>search</b>
When Search button is clicked it opens a new screen <b>B-list of activities</b>.afterthis when we click on create an activity the third screen is opened .there we have button to navigate back to the search screen.This navigation should give two results:
1)When search button is clicked and then we creeate a new activity it should show the screen B when navigated back
2)When search button is not clicked and directly we click create new activity.then after create when back button is pressed it should not show the list screen-B <b>only search screen-A</b> should be diplayed.
The <b>first condition is achieved</b> but second condition is not fulfilled.plz help