darylbrewer / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

FullScreenUI: prevent volume controls from changing ringtone volume #622

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What should be supported?
 - this code snippet: (SL4A r5)
   while True:
                event = droid.eventWait().result
                print event
                if event["name"] == "key":
                        if event["data"]["key"] == "24":
                                print "Vol Up"
                        elif event["data"]["key"] == "25":
                                print "Vol Down"

...which checks if the user pushes the (hardware) volume buttons should 
overwrite the standard function of the buttons, which is changing the ringtone 
volume. Right now these buttons change the volume so one can't really use them 
for anything else, as the volume bar pops up every time.

Original issue reported on code.google.com by dominik....@gmail.com on 29 Apr 2012 at 10:24

GoogleCodeExporter commented 9 years ago
Added in r5x18 - see fullKeyOverride

python example:
  droid.fullKeyOverride([24,25],True)

Original comment by rjmatthews62 on 30 Apr 2012 at 2:09