02-13-2013 02:26 AM
I need to capture key press event irrespective of application being background/foreground.
- My application is running but in background, my phone's kepad islocked
- If I press voume button 2 times within specified limit or any other possible key combination is press, then my application should understand that desired keys/combo is pressed by user and then do certain action .e.g send an email to specified email address with pre-poulated conten.
Is it possible to capture such keyevent and made it listen by application irrespeective of app status background / foreground / phone locked etc ?
If yes then request you to help me understand the the functions needs to be used
if no that means there is no staight forward solution avilabale so is there any workaround / tweak one can think of to achieve the desired result ?
Thanks & regards,
02-13-2013 04:10 AM