I'm overriding the Activity's onKeyDown() function to get the event,
so it presumably wouldn't be the up event that I'm processing.

On Jun 18, 2:40 am, Dianne Hackborn <[email protected]> wrote:
> You should only get a key down if the user is holding down the button (in
> which case it will be a repeat).  In either case, you will usually get the
> up event from the button.  Make sure you aren't seeing an up event and
> processing it as a down event.
>
>
>
>
>
> On Wed, Jun 17, 2009 at 10:33 PM, ivan <[email protected]> wrote:
>
> > I have a custom camera application...
>
> > I'm using a BroadcastReceiver to launch it when the Camera button is
> > pressed.  Unfortunately, once my camera app is launched the camera
> > button KeyDown event used to launch my camera activity is also passed
> > to it, which cause it to immediately attempt to capture a picture.
>
> > Is there a way to consume the KeyEvent so that this doesn't happen?
>
> > ... or any other elegant solutions other then some flag toggle?
>
> > Thanks.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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