List of usage examples for android.view.inputmethod InputMethodManager showSoftInputFromInputMethod
@Deprecated public void showSoftInputFromInputMethod(IBinder token, int flags)
From source file:Main.java
/** * @Description:// w w w. j a v a2s .com * @param addNoteActivity */ public static void forceShowKeyboard(Context context, EditText edt) { InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(edt.getWindowToken(), InputMethodManager.SHOW_FORCED); }
From source file:Main.java
public static void showKeyboard(Context context) { Activity activity = (Activity) context; if (activity != null) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(activity.getCurrentFocus().getWindowToken(), 0); imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); }/* w ww.j ava2s . com*/ }
From source file:Main.java
public static void showKeyoard(Activity activity) { InputMethodManager inputMethodManager = (InputMethodManager) activity .getSystemService(Activity.INPUT_METHOD_SERVICE); inputMethodManager.showSoftInputFromInputMethod(activity.getCurrentFocus().getWindowToken(), InputMethodManager.SHOW_FORCED); }
From source file:Main.java
public static void showKeyboard(Activity activity) { if (activity != null) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); if (!imm.isActive()) { imm.showSoftInputFromInputMethod(activity.getCurrentFocus().getWindowToken(), 0); }//from ww w . jav a 2 s . co m } }
From source file:com.app.sample.chatting.widget.KJChatKeyboard.java
/** * //from www .jav a2 s . c o m */ public static void showKeyboard(Context context) { Activity activity = (Activity) context; if (activity != null) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(activity.getCurrentFocus().getWindowToken(), 0); imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); } }
From source file:com.brq.wallet.activity.export.MrdDecryptDataActivity.java
private void showKeyboard() { passwordEdit.requestFocus();/*from w w w . ja v a2 s .c om*/ InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(passwordEdit.getWindowToken(), 0); }
From source file:com.haomee.chat.activity.ChatActivity.java
/** * //from w ww. j a v a 2s .c o m * * @param v */ public void editClick(View v) { hideBottom(); listView.setSelection(listView.getCount() - 1); if (all_container.getVisibility() == View.VISIBLE) { all_container.setVisibility(View.GONE); bt_emoticons.setVisibility(View.VISIBLE); } InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); // ?? // imm.hideSoftInputFromWindow(editView.getWindowToken(), 0); // imm.showSoftInputFromInputMethod(mEditTextContent.getWindowToken(), 0); // ??? // imm.toggleSoftInputFromWindow(mEditTextContent.getWindowToken(), 0, // InputMethodManager.HIDE_NOT_ALWAYS); }