B4A Question Phone.GetMute? (not Phone.SetMute) - JackKirk    Dec 31, 2015 I would like to be able to determine a voice channels mute state before I change it with Phone.SetMute(...) - so I can restore the mute state later.
I've looked high and low on the forums... B4A Question Set Volume- error - kisoft    May 12, 2018 Hi everyone I use this code to set the ringtone volume to the maximum value Dim p As Phone ' p.SetMute(p.VOLUME_RING,False) p.SetVolume(p.VOLUME_RING, p.GetMaxVolume(p.VOLUME_RING), False) Unfortunately, this error appears on Lg G6 ( SDK "26") Error occurred on line: 287 (Main) java.lang.SecurityException: Not allowed to change Do Not Disturb state at android....setStreamVolume(AudioManagerEx.java:396) at anywheresoftware.b4a.phone.Phone.SetVolume(Phone.java... B4A Question Can I stop SetRingerMode from beeping? - Erel (first post)    Sep 21, 2018 Try to mute or lower the volume of VOLUME_NOTIFICATION (?) channel.
Phone.SetMute or Phone.SetVolume. Make sure to read the documentation of these methods.... B4A Question mediaplayer.setvolume not working - Erel (first post)    Mar 13, 2020   (2 reactions) Always use Try / Catch when calling Phone.SetVolume or Phone.SetMute. An error will be thrown if the device is in "Do Not Disturb" mode. You can request a special permission to control the volume in this mode if you like.... B4A Question Testing if all sounds are muted - rleiman (first post)    Aug 18, 2014 Have you explored Phone.SetMute?
http://www.b4x.com/android/help/phone.html
Hi,
Thanks for letting me know of Phone.SetMute.
I used it like this:
Sub SwMute_CheckedChange (Checked As Boolean... B4A Question Disable WebView Sound - Erel (first post)    Dec 25, 2019 If you are loading a specific page then you might be able to inject JavaScript to disable the sounds. Another option is to mute the correct channel with Phone.SetMute. Make sure to use Try / Catch with SetMute as it will throw an exception if the Do Not Distribute option is enabled (unless you handle the special permission).... B4A Question notifications - Erel (first post)    Mar 14, 2016 Your app can control the phone volume channels. Check Phone.SetMute and Phone.SetRingerMode.... B4A Question PhoneStateChanged - lemonisdead (first post)    Sep 20, 2016 how can I mute the ringer if a call does come in? You can find your solution from the Phone library : https://www.b4x.com/android/help/phone.html#phone SetMute could be a solution... B4A Question Problem level ring Samsung device - Erel (first post)    Jan 5, 2014 You can also use Phone.SetMute.... B4A Question mute audio in videoview - Erel (first post)    Mar 23, 2014 You can use Phone.SetMute to mute any of the volume channels.... Page: 1   2   3   4   5   6   7   |