I am not sure about this, but I think it would work for you.

When you press the Home button, there would be an Intent fired system-wide.
So, you could write a receiver that tracks these particular kind of intent.

Now, in the receiver, you could monitor the frequency of these intents. IF
you could detect that the frequency is the same as you would want your app
to be triggered, you can very well start a service or activity, or whatever.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia <[email protected]>wrote:

> i am going to make one emeergency alert app
> As we know we dont have time to open app in emergency.
> so it should fire on some hard key.
> so plz suggeat alternet solution
> thanx.
> On Jan 21, 2012 9:25 AM, "Kumar Bibek" <[email protected]> wrote:
>
>> There would always be a few things which you cannot do.
>>
>> I don't understand how does this "No" affect the popularity of Android.
>>
>> Their could be other ways to solve your problem, that is, if you could
>> mention exactly what you are trying to do.
>>
>> *Thanks and Regards,
>> Kumar Bibek*
>> *
>> http://techdroid.kbeanie.com
>> http://www.kbeanie.com*
>>
>>
>>
>> On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia <[email protected]>wrote:
>>
>>> i m getting all the times answer no..
>>> then why android is this mch popular?
>>> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" <[email protected]>
>>> wrote:
>>>
>>>> Basically, no.
>>>>
>>>> To explain the basically: you can't do it.
>>>>
>>>> kris
>>>>
>>>> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia <[email protected]>
>>>> wrote:
>>>> > dear,
>>>> >
>>>> > is there any way to override home key?
>>>> >
>>>> > i want to start my app,by pressing home key for few times.
>>>> > thanx
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups "Android Developers" 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-developers?hl=en
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" 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-developers?hl=en
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" 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-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" 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-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to