Reputation: 3958
I am developing a Game and I would like to disable the volume buttons when I am playing (because the user has to use the accelerometer and could accidentally press it). Is it possible at all?
Upvotes: 3
Views: 3449
Reputation: 726619
Edit:
This Q&A explains how to set up a volume listener.
This Q&A explains how to hide volume overlays.
Old answer: This has not been possible in the past, because the practice has been explicitly disallowed by the app store review guidelines which no longer apply:
Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected
Upvotes: 6