title: AutoCompleteTextView: Remove soft keyboard on back press instead of suggestions
body: <p>When using <code>AutoCompleteTextView</code>, the dropdown suggestion list appears with the software keyboard still  visible. This makes sense, as it is often a lot more efficient to type ensuing characters to narrow the list. </p>
  
  <p>But if the user wants to navigate the suggestion list, it becomes extremely tedious with the software keyboard still up (this is even more of a problem when the device is in landscape orientation). Navigating the list is a lot easier without the keyboard hogging the screen space. Unfortunately, the default behaviour removes the list first when you press the back key (even though in the software versions of the back key it is showing the image that says 'pressing this will hide the keyboard').</p>
  
  <p>Here's a barebones example that demonstrates what I'm talking about:</p>
  
  <pre><code>public class Main2 extends Activity {
      private static final String[] items = {
              "One",
              "Two",
              "Three",
              "Four",
              "Five"
      };
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          AutoCompleteTextView actv = new AutoCompleteTextView(this);
          actv.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
          actv.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, items));
          actv.setThreshold(1);
  
          LinearLayout ll = new LinearLayout(this);
          ll.setOrientation(LinearLayout.VERTICAL);
          ll.addView(actv);
  
          setContentView(ll);
      }
  }
  </code></pre>
  
  <p>Besides the fact that this is unintuitive (the back key hint is suggesting that the back press will be sent to the keyboard), it makes navigating <code>AutoCompleteTextView</code> suggestions extremely tiresome.</p>
  
  <p>What is the <strong>least</strong> intrusive way (e.g. catching the back in on <code>onBackPressed()</code> in every activity and routing it accordingly would definitely not be ideal)  to make the first back press hide the keyboard, and the second remove the suggestion list?</p>