在 2015年1月27日星期二 UTC+8下午6:26:34,Piyush Gupta写道:
hello dear, you have to make InputMethodManager object and if
InputMethodManager isAcceptingText then means keybord is open else not
open.this snipped has tested more then 2 times....


InputMethodManager imm = (InputMethodManager) getActivity()
.getSystemService(Context.INPUT_METHOD_SERVICE);

if (imm.isAcceptingText()) {
Log.d(TAG,"Software Keyboard was shown");
} else {
Log.d(TAG,"Software Keyboard was not shown");

}
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platform+unsubscribe@googlegroups.com.
To post to this group, send email to android-platform@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupandroid-platform @
categoriesandroid
postedJan 27, '15 at 3:11p
activeMay 31, '16 at 2:50p
posts2
users2
websiteandroid.com

2 users in discussion

Piyush Gupta: 1 post Yanghong shen: 1 post

People

Translate

site design / logo © 2022 Grokbase