S Startup Active Member Licensed User Longtime User Feb 16, 2017 #1 When trying to mute the phone I find this works .. Code: Copy Dim p as Phone p.SetMute(3,True) The documentation (Wyken Seagrave's book) says "(SetMute(Channel As Int, Mute As Boolean). Mutes or unmutes the given channel - One of the Volume constants." I found the number 3 seems to work (testing with media player by trial and error) Can someone tell me what the other channels are or direct me to documentation on this?
When trying to mute the phone I find this works .. Code: Copy Dim p as Phone p.SetMute(3,True) The documentation (Wyken Seagrave's book) says "(SetMute(Channel As Int, Mute As Boolean). Mutes or unmutes the given channel - One of the Volume constants." I found the number 3 seems to work (testing with media player by trial and error) Can someone tell me what the other channels are or direct me to documentation on this?
stevel05 Expert Licensed User Longtime User Feb 16, 2017 #2 Try this: https://developer.android.com/reference/android/media/AudioManager.html#STREAM_ALARM (and the others below it) Upvote 0
Try this: https://developer.android.com/reference/android/media/AudioManager.html#STREAM_ALARM (and the others below it)
S Startup Active Member Licensed User Longtime User Feb 17, 2017 #3 stevel05 said: Try this: https://developer.android.com/reference/android/media/AudioManager.html#STREAM_ALARM (and the others below it) Click to expand... Thanks steve05 just what I was looking for! Upvote 0
stevel05 said: Try this: https://developer.android.com/reference/android/media/AudioManager.html#STREAM_ALARM (and the others below it) Click to expand... Thanks steve05 just what I was looking for!