Can the application know whether the Home button or the Power button was pressed?
86762
Is it possible to distinguish between locking the device and sending an app to background?
139255
What's the best way to detect a 'touch screen' device using JavaScript?
138439
In Python, how can I detect whether the computer is on battery power?
133325
How do I determine which application handles a global shortcut?
92601
Android, Detect when other apps are launched
8514
iPhone: Detecting user inactivity/idle time since last screen touch
52182
How to detect iphone is on silent mode
80163
Overriding the functionality of back and home buttons
43098
Keycode_home doesn't get called ANDROID
70634
Prevent Windows 7 from sleep + power button hook
28029
Check if display is powered on in Linux
21914
Find out which application listens to specific key bindings?
24535
Check if device is plugged in
6563
Android - How to prevent the phone screen from turning on when volume or camera key is pressed?
155105
Show SearchWidget in ActionBar if user presses the device's search button
19182
How can I see the fingerprint of my adbkey?
107586
How does the power button shut the computer down without root permission?