[android-developers] How to change Keyboard InputType programatically
Hi,
I am working on a Remote Desktop application and I want to control the
keyboard presence programmatically.
I achieved the display of soft keyboard by following block of code,
InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(myView, 0);
Displaying the keyboard by above technique only gives me a standard
keyboard.
But I do not know how to change the displayed keyboard InpuType e.g.,
TYPE_CLASS_PHONE
JFYI, my view hierarchy contains only ImageView as a child to the
RelativeLayout.
Key pointer to how I can achieve this would be greatly appreciated.
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home