import android.content.*; svoid aShowKeyboard() { View view = aActivity().getCurrentFocus(); if (view != null) { InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.toggleSoftInputFromWindow(view.getWindowToken(), InputMethodManager.SHOW_FORCED, 0); } }
Began life as a copy of #1014918
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023343 |
Snippet name: | aShowKeyboard |
Eternal ID of this version: | #1023343/3 |
Text MD5: | 037e444a20edd09e65034134c0ec296b |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-06 16:54:55 |
Source code size: | 352 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 243 / 287 |
Version history: | 2 change(s) |
Referenced in: | [show references] |