title: Android - Activities and navigation?
body: <ul>
  <li>I navigate from Activity1 to Activity2
  On Activity 2 I have a keyboard and this keyboard stays on the screen after selecting the back button and going to Activity 1.</li>
  </ul>
  
  <p>This is how I fixed this issue</p>
  
  <pre><code>    // This code is in Activity 2
  @Override
  public void onBackPressed() {
      startActivity(intentForActivity1);
      finish();
  }
  </code></pre>
  
  <p>Is this a wrong solution to my problem?
  Is it a bad idea to handle the back button manually?</p>