title: Finishing an Activity with onBackPressed()
body: <p>I have two activities like First and Second.I direct to Second activity from First activity by clicking a button.I start again the First activity from Second activity after doing some works.So the some values are updated accordingly. When I come back to the First activity, I call the finish() method.So If I press the phone back button the second activity does not start.But the problem is when I click the back button now It direct to the First activity which had the previous data(Data when I started the app.)I want to stop this.I want to finish my First activity when press back button.If the question is unclear please let me know.I want to solve this.</p>
  
  <p>example:
  A(original state) -> B(Second activity) -> A(Updated state).
  When I go from B -> A(Updated state) and press back button from A.Again it direct to the A(original state).I want to stop this and want to finish the application when back button press from A(updated state)</p>