1 | static void androidMuteAudio() { |
2 | androidMuteAudio(androidActivity()); |
3 | } |
4 | |
5 | static void androidMuteAudio(Activity androidContext) { |
6 | AudioManager amanager = (AudioManager) androidContext.getSystemService(Context.AUDIO_SERVICE); |
7 | amanager.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); |
8 | amanager.setStreamMute(AudioManager.STREAM_ALARM, true); |
9 | amanager.setStreamMute(AudioManager.STREAM_MUSIC, true); |
10 | amanager.setStreamMute(AudioManager.STREAM_RING, true); |
11 | amanager.setStreamMute(AudioManager.STREAM_SYSTEM, true); |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001275 |
Snippet name: | androidMuteAudio |
Eternal ID of this version: | #1001275/1 |
Text MD5: | 0177aa4be065938cd65119b27c144929 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-22 00:11:40 |
Source code size: | 542 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 630 / 927 |
Referenced in: | [show references] |