Start with uploading a small example which shows the problem.
What did you tried to ge the softkeyboard open on the other Edittextfields?
Hard to help if we do not know what code you are using
I'm not using any code to open or close the soft keyboard.
Here is code to demonstrate the issue...
Sub Globals
Private Button1 As Button
Private EditText1 As EditText
Private EditText2 As EditText
Private EditText3 As EditText
End Sub
Sub Activity_Resume
EditText1.RequestFocus
End Sub
Sub EditText1_EnterPressed
Log("Enter Pressed in EditText1")
EditText2.RequestFocus
End Sub
Sub EditText2_EnterPressed
Log("Enter Pressed in EditText2")
EditText3.RequestFocus
End Sub
Sub EditText3_EnterPressed
Log("Enter Pressed in EditText3")
End Sub
Sub Button1_Click
Log("EditText1.Text = " & EditText1.Text)
Log("EditText2.Text = " & EditText2.Text)
Log("EditText3.Text = " & EditText3.Text)
End Sub
When NOT using the bar code scanner, the soft keyboard appears with focus on EditText1. I type a bar code and press Return on the soft keyboard. Focus moves to EditText2 and I still have the soft keyboard on the screen. I type in some text and press Return on the soft keyboard. Focus moves to EditText3 and I still have the soft keyboard on the screen. I type in some text and press Return on the soft keyboard. The soft keyboard disappears from the screen. I press Button1 and the Logs shows the results.
Logger connected to: TCL Alcatel_4060A
--------- beginning of main
--------- beginning of system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Enter Pressed in EditText1
Enter Pressed in EditText2
Enter Pressed in EditText3
EditText1.Text = 12345
EditText2.Text = test
EditText3.Text = test2
When I DO USE the bar code scanner, the soft keyboard appears with focus on EditText1. Instead of typing on the soft keyboard, I scan a bar code. The soft keyboard disappears and focus moves to EditText2. Having used the scanner, I can no longer get the soft keyboard back up on the screen. Tapping the other EditText fields won't bring the soft keyboard back, either.
I have tried using IME with ShowKeyboard(EditText) as in...
Sub EditText2_FocusChanged (HasFocus As Boolean)
If HasFocus = True Then
IME.ShowKeyboard(EditText2)
End If
End Sub
but the results are still the same: the soft keyboard will not show again after having used the bar code scanner for entry into any of the EditText fields.
I think that the SPP mode example suggested by KMatle is the direction I need to go. I'll have to treat the data from the scanner as a serial stream and handle it in my code accordingly rather than letting Android handle it as a keyboard event.