Sudhakar Chavali
Sudhakar Chavali

Reputation: 829

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

Upvotes: 1

Views: 329

Answers (1)

Sebastian Roth
Sebastian Roth

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

Related Questions