Apps can intercept the call key to let the user press it when on a phone
number or other thing that makes sense to perform a call on.  They can't
intercept end call and home, though, so regardless of whether you consume
the call key you still need to deal with the user leaving your app at any
point.

On Fri, Oct 9, 2009 at 4:53 AM, Mark Murphy <mmur...@commonsware.com> wrote:

>
> Raman wrote:
> > Thanks for that suggestion. I'll take that but my problem is still not
> > solved. My problem is when Options menu is opened.
> > In that scenario, pressing of Call key does not call the callback
> > function onKeyDown() and I do not know why.
>
> The options menu probably intercepts all keys and, for whatever reason,
> does not propagate the Call key to be intercepted. IMHO, this is a good
> thing.
>
> > I could not find a way to catch that key event, so if you have a
> > solution, please let me know...
>
> Don't intercept the Call key. As Megha indicated, I'm surprised it is
> even possible.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to