Android Question Show Keyboard on activity change

Derek Jee

Active Member
Licensed User
Longtime User
HI there

Can someone tell me how to show the keyboard immediately an activity is open. I have set focus to an edit box but want the keyboard to show without having to click it..

Thank you!!

Derek.
 

DonManfred

Expert
Licensed User
Longtime User
get inspired here.
 
Upvote 0

Derek Jee

Active Member
Licensed User
Longtime User
Thank you Manfred.

I have looked here already and can get the keyboard to show on a click event but cannot get it to show on activity create. Is there a way for it to show immediately the user open the activity?

Thank you for responding,

Derek.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You should call the showkeyboard of the ime library on activity resume; not in activity create. Nothing is hown in activityCreate. Just declared or layouts loaded. But you´ll get the layout shown after you pass the activityResume.
 
Upvote 0

ArminKH

Well-Known Member
use ime library
You should call the showkeyboard of the ime library on activity resume; not in activity create.
also we can use callsubdelayed on activity create to show the keyboard
B4X:
sub ShowKeyboard
IME1.ShowKeyboard
end sub

Sub Activity_Create(FirstTime as boolean)
Callsubdelayed(me,"ShowKeyboard")
end sub
 
Upvote 0

Derek Jee

Active Member
Licensed User
Longtime User
You should call the showkeyboard of the ime library on activity resume; not in activity create. Nothing is hown in activityCreate. Just declared or layouts loaded. But you´ll get the layout shown after you pass the activityResume.

Thank you Manfred.. Rookie mistake. I still couldn't get it to show though..

Kind regards,

Derek.
 
Upvote 0

Derek Jee

Active Member
Licensed User
Longtime User
use ime library

also we can use callsubdelayed on activity create to show the keyboard
B4X:
sub ShowKeyboard
IME1.ShowKeyboard
end sub

Sub Activity_Create(FirstTime as boolean)
Callsubdelayed(me,"ShowKeyboard")
end sub

This worked for me, thank you Armin..
 
Upvote 0
Top