Nickelgrass Active Member Licensed User Longtime User Aug 6, 2015 #1 Hi, I would like to create a service (broadcast receiver?) running in the background that can detect a press on one of the hardwarebuttons without an activity being shown. Perhaps also with press and longpress determination. Is this possible? I would like to directly do things like launch another app by longpressing one of the hardware buttons. Thanks!
Hi, I would like to create a service (broadcast receiver?) running in the background that can detect a press on one of the hardwarebuttons without an activity being shown. Perhaps also with press and longpress determination. Is this possible? I would like to directly do things like launch another app by longpressing one of the hardware buttons. Thanks!
mangojack Expert Licensed User Longtime User Aug 6, 2015 #2 maybe this is of interest ... https://www.b4x.com/android/forum/threads/tracking-keyevents-from-a-service.41907/ Upvote 0
maybe this is of interest ... https://www.b4x.com/android/forum/threads/tracking-keyevents-from-a-service.41907/