P Philip Prins Active Member Licensed User Longtime User Oct 15, 2015 #1 I can't intercept a certain key on my device while the log shows keycode 229; interceptKeyTq keycode=229 screenIsOn=false keyguardActive=false policyFlags = #2000000 down =false canceled = false isWakeKey=false mVolumeDownKeyTriggered =false mVolumeUpKeyTriggered =false Click to expand... I read several posts in regard to intercepting a media button using intents or broadcast receiver but can not figure out how to
I can't intercept a certain key on my device while the log shows keycode 229; interceptKeyTq keycode=229 screenIsOn=false keyguardActive=false policyFlags = #2000000 down =false canceled = false isWakeKey=false mVolumeDownKeyTriggered =false mVolumeUpKeyTriggered =false Click to expand... I read several posts in regard to intercepting a media button using intents or broadcast receiver but can not figure out how to
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2015 #2 Which key are you trying to intercept? Upvote 0
P Philip Prins Active Member Licensed User Longtime User Oct 16, 2015 #3 Hello Erel , It is a SOS button with keycode 229, any method to detect this in the background with an service? Upvote 0
Hello Erel , It is a SOS button with keycode 229, any method to detect this in the background with an service?
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2015 #4 Unless the OS sends a special intent (I didn't find any documentation about such an intent in this case) it is not possible to intercept key presses from a service. Upvote 0
Unless the OS sends a special intent (I didn't find any documentation about such an intent in this case) it is not possible to intercept key presses from a service.