Bug? SetVolume and Android 12

FredL41

New Member
Licensed User
Hello,
Since Android 12 the SetVolume method no longer works when my application is in the background. No problem with Android 11, Android 10 and Android 9.
Am I the only one having this problem?
How to solve it?
Thank you for your help.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

FredL41

New Member
Licensed User
Hello Erel, thank you for this solution. I get the audio focus back but still can't change the volume in the background. No big deal, I can do otherwise by recovering the audio focus. But how to abandon this audio focus?
Thanks in advance.
 
Top