how can I restart activity on back button pressed?
<p>I'm going from main activity to another activity and then when I press back button I want to go back to the main activity and restart it.
How can I do that?
Thanks in advance.</p>
