I am making an android app and I need to detect power button press twice even hen the app is not running in the background and send the SMS to the people while the device is locked. I don't want for the user to unlock the phone and then click on send to send the message.
Asked
Active
Viewed 168 times
1
-
duplicate of https://stackoverflow.com/questions/37157921/want-to-access-power-button-events-in-android – Intsab Haider Sep 22 '19 at 10:40
-
1@IntsabHaider I dont think its duplicate.I saw the post you linked me to and that isnt working for me as it needs the application to be open in background. And i also want to know how to send the message in such a way that user doesnt need to press the send button. – Shubham Jain Sep 22 '19 at 10:56