I am developing security app on android platform. now my requirement is to handle back button press event when application not open or not in foreground screen.
some code of my application should run, i need to send notification from my application. when three time back button press continuously when app closed
is there any way to handle back button event out of application?? i know how to handle back press event when application currently in use but dont know this type of stuff.