You can override dispatchKeyEvent which should do the trick.

On Mar 12, 1:21 pm, striverwang <striverw...@gmail.com> wrote:
> hi, all:
> I want to development a application, which want to use volume down, up
> key to do something I need.
> For example, when the user click the volume up button, a dialog pop-
> up.
> Can I do that ?
--~--~---------~--~----~------------~-------~--~----~
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