I have a smiley button, i want to create smiley button than show emoji keyboard on android directly. It's any suggestion to show emoji keyboard in onClick
event? here the scenario
Asked
Active
Viewed 2,825 times
2

Arief Maffrudin
- 41
- 1
- 6
-
Possible duplicate of [Android : How to programatically open the soft keyboard in Emoji View](http://stackoverflow.com/questions/40013723/android-how-to-programatically-open-the-soft-keyboard-in-emoji-view) – AlbAtNf Apr 21 '17 at 08:57
1 Answers
-2
public static void chooseKeyboard(Activity activity) {
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
View view = activity.getCurrentFocus();
if (view == null) {
view = new View(activity);
}
imm.showInputMethodPicker();
}
call it and choose keyboard.

Sourabh Wasnik
- 1
- 2
-
1i think it's just show keyboard option, i mean, click the smilley keyboard and show keyboard with emoji directly @SourabhWasnik – Arief Maffrudin Apr 25 '17 at 03:32