In my app, whenever calling the finish() method, wherever it was, I am not taken to the previous activity, rather I am directed to mainActivity.

```
finish();

```

My aim is, showing the user the activity just before the current activity he is seeing.

***Question 1 :*** How can I make finish() always take me to the activity before ?

***Question 2 :*** Does this work using another workaround other than finish() ?

***Question 3 :*** How to check the stack of activities and decide accordingly which one to go to ?