Hello All,
I have been trying to figure this out and know that overriding the volume keys is not the most ideal thing but its the one real buttons on every Android device which is needed for my application. Currently I am overriding the volume keys with dispatchKeyEvent
because onKeyUp
and onKeyDown
were not working. Throughout the application there are little dialogs or context menus that pop up. The problem is when those take focus I lose control of the volume buttons and it adjusts the main volume instead of acting like my button. Is there any way to completely take over the volume buttons? Any help would be appreciated.
-mlove