Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1023343 // aShowKeyboard

JavaX fragment (include)

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);
  }
}

Author comment

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: 162 / 206
Version history: 2 change(s)
Referenced in: [show references]