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

9
LINES

< > BotCompany Repo | #1023343 // aShowKeyboard

JavaX fragment (include)

1  
import android.content.*;
2  
3  
svoid aShowKeyboard() {
4  
  View view = aActivity().getCurrentFocus();
5  
  if (view != null) {
6  
    InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
7  
    inputManager.toggleSoftInputFromWindow(view.getWindowToken(), InputMethodManager.SHOW_FORCED, 0);
8  
  }
9  
}

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