Questions tagged [android-hardware-keyboard]

19 questions
0
votes
0 answers

How to detect hardware back button presence in android?

We have two different kind of devices one is having soft back button, another one having hardware back button. Is there any common method for find out hardware back button is exists or not. I tried the below code to detect hardware back button…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
0
votes
1 answer

shift and fn(alt) state in physical keyboard

i need to know the state of shift and fn(alt) on physical keyboard when they are pressed or get locked. i know the KeyEvent class have methods like isAltPressed() and isShiftPressed(), this works fine when shift or fn pressed one time, but when they…
mehdok
  • 1,499
  • 4
  • 29
  • 54
0
votes
1 answer

Android IR Remote Override Power Key

How to Override the power key of an IR remote for a rooted Android device? I have tried the following case KeyEvent.KEYCODE_STB_POWER: Toast.makeText(this, "KEYCODE_STB_POWER key pressed", …
Code_Yoga
  • 2,968
  • 6
  • 30
  • 49
-1
votes
1 answer

Using hardware key listeners from inner class in Android

I'm trying to listen to an android hardware button to manually cancel a countdown timer. I have looked around, the solution seems to be to override the "onKeyUp" or "onKeyDown" for the buttons. The problem is I think I can only write the override…
1
2