petr4ppc Well-Known Member Licensed User Longtime User Aug 24, 2016 #1 Dear friends, I have this situation. If I connect Barcode scanner to my device (Android 4.4.2) then I cant use on screen keyboard. This virtual keyboard is not showing if I touch text fields. Please it is possible to allow this virtual keyboard? I found that it is possible to do it via InputMethodManager: Code: InputMethodManager imm = (InputMethodManager)getContext().getSystemService( Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); or is here some other way? (I cant set it in phone settings, I must find the solution programatically.) Best regards p4ppc
Dear friends, I have this situation. If I connect Barcode scanner to my device (Android 4.4.2) then I cant use on screen keyboard. This virtual keyboard is not showing if I touch text fields. Please it is possible to allow this virtual keyboard? I found that it is possible to do it via InputMethodManager: Code: InputMethodManager imm = (InputMethodManager)getContext().getSystemService( Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); or is here some other way? (I cant set it in phone settings, I must find the solution programatically.) Best regards p4ppc
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2016 #2 The last time that this issue was discussed it was not solved. I don't think that this Java code will work but you can try it with: Code: Dim ctxt As JavaObject ctxt.InitializeContext Dim imm As JavaObject = ctxt.RunMethod("getSystemService", Array("input_method")) imm.RunMethod("toggleSoftInput", Array (2, 0)) Upvote 0
The last time that this issue was discussed it was not solved. I don't think that this Java code will work but you can try it with: Code: Dim ctxt As JavaObject ctxt.InitializeContext Dim imm As JavaObject = ctxt.RunMethod("getSystemService", Array("input_method")) imm.RunMethod("toggleSoftInput", Array (2, 0))
vecino Well-Known Member Licensed User Longtime User Oct 16, 2018 #3 Hello, I see that this thread is very old, but I have encountered this same problem and I would like to ask if someone has found a solution to the problem. Thank you. Upvote 0
Hello, I see that this thread is very old, but I have encountered this same problem and I would like to ask if someone has found a solution to the problem. Thank you.