Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the AudioManager service
- AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
- // Check for mute using isStreamMute(int)
- if (audio.isStreamMute(AudioManager.STREAM_MUSIC)) {
- Toast.makeText(this, "Music is muted (isStreamMute)", Toast.LENGTH_SHORT).show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement