set Volume Unmute - Android Media

Android examples for Media:Media Volume

Description

set Volume Unmute

Demo Code


//package com.java2s;

import android.content.Context;

import android.media.AudioManager;

public class Main {
    public static void setVolumeUnmute(Context mc) {
        AudioManager am = (AudioManager) mc
                .getSystemService(Context.AUDIO_SERVICE);
        am.setStreamMute(AudioManager.STREAM_MUSIC, false);
    }//from ww  w. j a v a  2 s .co  m
}

Related Tutorials