1 | static void androidUnmuteAudio() {
|
2 | androidUnmuteAudio(androidActivity()); |
3 | } |
4 | |
5 | static void androidUnmuteAudio(Activity androidContext) {
|
6 | AudioManager amanager = (AudioManager) androidContext.getSystemService(Context.AUDIO_SERVICE); |
7 | amanager.setStreamMute(AudioManager.STREAM_NOTIFICATION, false); |
8 | amanager.setStreamMute(AudioManager.STREAM_ALARM, false); |
9 | amanager.setStreamMute(AudioManager.STREAM_MUSIC, false); |
10 | amanager.setStreamMute(AudioManager.STREAM_RING, false); |
11 | amanager.setStreamMute(AudioManager.STREAM_SYSTEM, false); |
12 | } |
Began life as a copy of #1001275
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: | #1001277 |
| Snippet name: | androidUnmuteAudio |
| Eternal ID of this version: | #1001277/2 |
| Text MD5: | 7c40b16b6be8c1d06b66cda721579c54 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-04 18:36:49 |
| Source code size: | 553 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 955 / 1194 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |