Android - Volume Buttons used in my application
Posted
by Iuliu Atudosiei
on Stack Overflow
See other posts from Stack Overflow
or by Iuliu Atudosiei
Published on 2010-05-20T14:36:58Z
Indexed on
2010/05/20
14:40 UTC
Read the original article
Hit count: 211
android
|android-sdk
Hi, I need to use volume buttons to control a variable parameter in my application. I use Activity.onKeyDown to get notified when the button is pressed but the media volume is also increased. Android is doing something like below when I press the volume key: 1. increase media / ringtone volume 2. pass the event to my application
Is there a way to avoid increasing the system volume and use volume key only for my application ?
Thanks
© Stack Overflow or respective owner