Android Question Show keyboard once activity is started

Shay

Well-Known Member
Licensed User
Longtime User
Hi

Using IME
I have activity + using loadlayout
I have 1 EditText
I wish to get keyboard as the layout is coming up, without pressing on the EditText
How can I do it?
It is not working with "Keyboard.ShowKeyboard (EditText1)"
 

DonManfred

Expert
Licensed User
Longtime User
I would try a EditText1.RequestFocus in Activity_Resume and in focus_changed showing the keyboard
 
Upvote 0

netsistemas

Active Member
Licensed User
Longtime User
For seconds ACTIVITY_RESUME's:

I must be included a DOEVENTS
And
Add LIBRARY IME to define Dim IME As IME




Sub Activity_Resume

FocoLectura


End Sub

Sub FocoLectura
doEvents
txtReferencia.Text = ""
txtReferencia.RequestFocus
DoEvents
IME.ShowKeyboard(txtReferencia)

End Sub
 
Upvote 0
Top