How to programmatically disable predictive text (with no EditText)
<p>There is an Android application containing self-made input field (no <code>TextView</code> or <code>EditText</code> elements), so I have to show/hide keyboard, handle user input and show entered symbols on my own.</p>

<p>I need to disable predictive text mode for standard view. Unfortunately Android <code>View</code> class (android.view.View) has no function <code>setInputType</code>.</p>

<p>There is a probable solution. Get <code>InputConnection</code> of given view and change its properties. But I cannot find how to get and set instance of current <code>InputConnection</code>, unfortunately function <code>onCreateInputConnection</code> is not called either.</p>

<p>Is there any method to disable predictive text mode for standard view?</p>
