[android-developers] Re: how to handle hardware volume controls

2009-06-05 Thread Mark Murphy
Josh wrote: I figured out my problem. I was overriding onKeyDown. I removed the override and it works as it should. For keys you do not handle, call and return the result from super.onKeyDown(). This will allow Android to process keys you are not directly interested in, while still allowing

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Saurav Mukherjee
hi, try to get the instance of AudioManager by using the code: Context.getSystemService(Context.AUDIO_SERVICE) n then try and use the methods given... i guess that'll work... provide appropriate control buttons/graphical interfaces for the same... visit:

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Josh
That did not work for me either. Once my app starts and I press the hardware volume controls i see nothing on the screen. but if i press it before i start the app i see the ringer volume indicator. On Jun 3, 11:16 pm, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: hi, try to get the

[android-developers] Re: how to handle hardware volume controls

2009-06-04 Thread Josh
I figured out my problem. I was overriding onKeyDown. I removed the override and it works as it should. On Jun 4, 9:10 pm, Josh joshdo...@gmail.com wrote: That did not work for me either. Once my app starts and I press the hardware volume controls i see nothing on the screen. but if i press