I'm watching for ACTION_DOWN/ACTION_UP for KEYCODE_VOLUME_UP and
KEYCODE_VOLUME_DOWN and using these for purposes other than volume.

There are really 3 questions here.

1) In some rare cases, I will see the button down but no associated
button up.  There should be no reason for a focus change.  When should
I and shouldn't I see events in the Activity dispatchKeyEvent?  Are
release events ever expected to be lost?  (Could a background task
using high CPU cause this?)

2) Upon ACTION_UP, a ProgressDialog is displayed.  Are the following
behaviors correct?
a) The Activity does not see KEYCODE_VOLUME_UP or KEYCODE_VOLUME_DOWN
while the ProgressDialog is up
b) While the ProgessDialog is up, these keys allow adjustment of
volume
c) If I watch for OnKey event in the ProgressDialog, I don't see
KEYCODE_VOLUME_UP or KEYCODE_VOLUME_DOWN

3) Is there a way to poll to see if VOLUME_UP or VOLUME_DOWN is
currently being pressed?  (If the release event sometimes gets lost,
at least I could try to poll to check for release.)

-Mike

-- 
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