title: How to disable emojis programmatically in Android
body: <p>I want to hide emojis and auto suggestions from keyboard programmatically. Its working in some Android devices but not in all devices. here's my code for hide auto suggestions:</p>
  
  <pre><code>txtSingupemail.setInputType(InputType.TYPE_TEXT_VARIATION_FILTER | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS 
                             |InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
  txtSignuppwd.setInputType(InputType.TYPE_TEXT_VARIATION_FILTER | InputType.TYPE_TEXT_VARIATION_PASSWORD);
  txtSignuppwd.setTransformationMethod(PasswordTransformationMethod.getInstance());
  </code></pre>
  
  <p><strong>Here's the snapshot of my UI:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/XxGO7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XxGO7.png" alt="enter image description here"></a></p>
  
  <p>This is layout when user clicks signIn button. When user tap on bottom left icon which is marked red, the keyboard height goes increase due to emojis as suggestions. </p>
  
  <p><strong>See below snapshot:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tISEy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tISEy.png" alt="enter image description here"></a></p>
  
  <p>Is there any way to hide those top emojis from keyboard programmatically?</p>