Android: EditText.setInputType() how to setup for email but not auto-suggest
<p>I am using an <code>EditText</code> box for user to enter their email address.</p>

<p>I set it up using:</p>

<pre><code>box.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS );
</code></pre>

<p>This results in the soft keyboard popping up with the '@' and '.' (and some keyboards '.com') keys on the initial keyboard layout.  Great just what I want.</p>

<p>However, I notice the text is all black (when I specified white).  I found this is due to auto-suggest.  If I go into <code>Settings-&gt;Languages/Keyboards-&gt;Touch Input-&gt;TextInput</code> and disable Prediction and Word Completion, then the text shows up white.</p>

<p>Now the question:  How do I get auto-complete programmatically disabled for this?</p>

<p>I have tried setting up the box by doing:</p>

<pre><code>box.setInputType( InputType.TYPE_CLASS_TEXT | TYPE_TEXT_FLAG_NO_SUGGESTIONS );
</code></pre>

<p>This results in all white text (i.e. no auto-suggest).  But then I longer have email '@' and '.com' buttons!  Bah-humbug.</p>

<p>Anyway to get both?   Thanks.</p>
