Reputation: 829
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
Upvotes: 1
Views: 329
Reputation: 11537
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.
Upvotes: 4