Pop up the virtual keyboard

Put problems with the Android NDK in this forum.

Pop up the virtual keyboard

Postby paulscode » Thu Dec 02, 2010 12:26 am

Anyone know the code used to pop up the user's currently selected virtual keyboard (besides setting focus to an editable text field). I know it is possible, as I've seen apps that do this (the Apple ][ emulator on the Android Market, for example), but I haven't seen example code for this anywhere.
paulscode
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Thu Nov 11, 2010 3:57 pm

Top

Re: Pop up the virtual keyboard

Postby blundell » Sun Dec 05, 2010 8:07 pm

Try this
Code: Select all
InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.toggleSoftInput(0,0);


If not , just have a play with the methods in this API:

http://developer.android.com/reference/ ... nager.html

and post back the answer! :-)
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Pop up the virtual keyboard

Postby Kcm » Tue Jan 11, 2011 9:37 am

Kcm
Junior Developer
Junior Developer
 
Posts: 11
Joined: Fri Oct 15, 2010 9:43 am

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 2 guests