Hello, I would like to change the sound level when I press the 'up' volume bouton from the smartphone. Because when I use my app I can't change the volume level by pressing the button..
Hello, I would like to change the sound level when I press the 'up' volume bouton from the smartphone. Because when I use my app I can't change the volume level by pressing the button..
Maybe you are intercepting the volume key using Activity_KeyPress, so your app override the button. You can intercept the button by using sub like this
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
If KeyCode = KeyCodes.KEYCODE_VOLUME_UP Then
Log("intercepted")
Return True
End If
Return False
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.