title: Android go back to previous Activity
body: <p>I have two activities, <code>MainActivity</code> and <code>NextActivity</code>. From <code>MainActivity</code> I can go to <code>NextActivity</code> and then use <code>Intent</code> to go back to <code>MainActivity</code>. But then <code>OnCreate</code> and other stuff will be called and it will be like everything is initialized again. I want to go back to the state just like it was before i entered the <code>NextActivity</code>.</p>
  
  <p>I realized that if I use the physical back button on my phone exactly this is achieved.</p>
  
  <p>So how to go back to an activity just like the back button?</p>
  
  <p>PS.
  I tested <code>finish()</code> but didn't help.</p>