Thursday, December 13, 2012

[android-developers] not able to open numpade(soft keyboard) @ activity launched time

i want open a keypade with numpade (number only, just like input type is "phone").

but problem is :
--------------------

My activity contains one edittext and one button.
so when my activity launched at that time i want cursor focus on my edittext and open soft keyboard @ activity launched time.

what i have done
-----------------------
InputMethodManager inputMethodManager=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInputFromWindow(tabHost.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);

using above code i can able to open qwerty keyboard, but i want to open numpade, how it is possible?

thank you.
 

--
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

No comments:

Post a Comment