is Microphone Muted - Android Phone

Android examples for Phone:Sound

Description

is Microphone Muted

Demo Code


//package com.java2s;
import android.app.Activity;
import android.content.Context;
import android.media.AudioManager;

public class Main {
    public static boolean isMicrophoneMuted(Activity activity) {
        AudioManager audioManager = (AudioManager) activity
                .getSystemService(Context.AUDIO_SERVICE);
        return audioManager.isMicrophoneMute();
    }// ww  w .  ja va  2 s  . co  m
}

Related Tutorials