How to use setInputMethod in InputMethodManager class
<p>Given this code below :</p>

<pre><code>InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
List&lt;InputMethodInfo&gt; inputMethods = imm.getEnabledInputMethodList();
for(InputMethodInfo method : inputMethods){
    String name = method.loadLabel(activity.getPackageManager()).toString();
    new InfoDialog(activity,name).show();
    //imm.setInputMethod(token, id);
}
</code></pre>

<p>I have two <strong>Input Method</strong> installed in my device: <strong>Samsung Keyboard</strong> and <strong>Google Handwriting Input</strong>. What I was trying to do is to switch between these two <strong>Keyboards</strong> using <code>setInputMethod</code>.</p>

<p>Example:</p>

<pre><code>imm.setInputMethod(&lt;Samsung Keyboard&gt;);
</code></pre>

<p>or</p>

<pre><code>imm.setInputMethod(&lt;Google Handwriting Input&gt;);
</code></pre>

<p><strong>How to do it?  Any Idea?</strong></p>