Volume Control in android application
Posted
by rantravee
on Stack Overflow
See other posts from Stack Overflow
or by rantravee
Published on 2010-03-29T15:44:36Z
Indexed on
2010/03/29
16:03 UTC
Read the original article
Hit count: 489
android
Hi,
I'd like to know how to control my application's volume from the volume keys ( contrary to my belief , I've read they control only the ringer volume). Should I overwrite the onKey Down/Up ? , or is there other way to accomplish this ? . I'm asking because if I overwrite the upper mentioned function for an activity, then the functions will receive the event only if a view associated with the this activity has the focus, and I looking for something "Globaly" ( to work no matter what activity is running now)
© Stack Overflow or respective owner