title: Android: don't show soft keyboard in AutocompleteTextView
body: <p>I have an <code>AutocompleteTextView</code> to select a train station, which is using <strong>two different adapters</strong>:</p>
  
  <p><strong>ADAPTER 1</strong>: containing a fixed list of recent and nearby stations (<strong>DOESN'T require a soft keyboard</strong> for filtering by typing)<br>
  <strong>ADAPTER 2</strong>: containing the cursor to the sqlite database of stations (<strong>DOES require a soft keyboard</strong> for filtering by typing)</p>
  
  <p>So, I would like to prevent the soft keyboard from showing when the AutocompleteTextView gets the focus and the ADAPTER 1 is used, but I haven't found a way yet.</p>
  
  <p>I am currently using this, but the soft keyboard keeps popping up:<br>
  <code>InputMethodManager imm = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(getApplicationWindowToken(), 0);</code></p>