You can launch your service on a reboot or when the user swipes the screen with 
their thumb to unlock the screen.   To trigger the message you could have an 
activty tap the service via the IDL interface or use some GPS or time based 
metric from within your service.

Sent from my Motorola Xoom

Justin Anderson <[email protected]> wrote:

>Sorry, AFAIK this isn't possible...
> On Jul 1, 2011 10:12 PM, "titli batali" <[email protected]> wrote:
>> hey all
>>
>> I was looking to synchronize hardware key in my application. In one of
>> the module of my project
>> I want to send the saved message to selected contact group using
>> double press of any hardware key ( say power button coz it is
>> available in all android phones) .
>>
>> Scenario : a user presses the power button twice any time ( say user
>> is on homescreen or listening to music), and the predefined message
>> saved in my application is sent to the selected contact group .
>>
>> This functionality should work even if the user reboots its device any
>> number of time.Is it possible to start the backgroud service using
>> HardwareKey.??
>>
>> How cud i add this functionality to my project ? Cud anyone help.???
>>
>> Thanx
>> TiTliBaTaLi
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>"Android Discuss" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>[email protected].
>> For more options, visit this group at
>http://groups.google.com/group/android-discuss?hl=en.
>>
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Android Discuss" group.
>To post to this group, send email to [email protected].
>To unsubscribe from this group, send email to 
>[email protected].
>For more options, visit this group at 
>http://groups.google.com/group/android-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to