Okay, no problem any more. I found a way, maybe this will help someone with same problem.
B4X:
Sub HideKeyboard (target As View)
Dim nativeMe As JavaObject
nativeMe.InitializeContext
nativeMe.RunMethod("hideSoftKeyboard",Array As Object(target))
End Sub
#If Java
public void hideSoftKeyboard(android.view.View view){
android.view.inputmethod.InputMethodManager imm = (android.view.inputmethod.InputMethodManager)getSystemService(android.content.Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
#End If
Sub ShowKeyboard (target As View)
Dim nativeMe As JavaObject
nativeMe.InitializeContext
nativeMe.RunMethod("showSoftKeyboard",Array As Object(target))
End Sub
#If Java
public void showSoftKeyboard(android.view.View view){
if(view.requestFocus()){
android.view.inputmethod.InputMethodManager imm = (android.view.inputmethod.InputMethodManager) getSystemService(android.content.Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(view,android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
}
}
#End If