开发者

How to know if app is using softkey pad or hardware key pad?

Are there any API that helps the app to know if it is getting开发者_开发知识库 key events from hardware keypad or softkey pad?

Thanks & Best Regards

Sudhakar Chavali


Yes, take a look here: http://developer.android.com/reference/android/view/KeyEvent.html

There are flags like FLAG_SOFT_KEYBOARD, FLAG_VIRTUAL_HARD_KEY and others.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜