Java tutorial
//package com.java2s; import android.os.Bundle; import android.view.inputmethod.EditorInfo; public class Main { public static boolean isEmojiAllowed(EditorInfo editorInfo) { Bundle bundle = editorInfo.extras; return (bundle != null) && bundle.getBoolean("allowEmoji"); } }