Available Methods
- STREAM_MUSIC
- getStreamVolume ( )
- RINGER_MODE_NORMAL
- AUDIOFOCUS_LOSS_TRANSIENT
- getRingerMode ( )
- AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK
- AUDIOFOCUS_REQUEST_GRANTED
- AUDIOFOCUS_GAIN
- AUDIOFOCUS_LOSS
- setStreamVolume ( )
- getStreamMaxVolume ( )
- RINGER_MODE_SILENT
- RINGER_MODE_VIBRATE
- setSpeakerphoneOn ( )
- abandonAudioFocus ( )
- requestAudioFocus ( )
- setMode ( )
- STREAM_RING
- setRingerMode ( )
- STREAM_NOTIFICATION
- STREAM_VOICE_CALL
- STREAM_SYSTEM
- ADJUST_LOWER
- MODE_NORMAL
- setBluetoothScoOn ( )
- registerMediaButtonEventReceiver ( )
- isWiredHeadsetOn ( )
- adjustStreamVolume ( )
- AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE
- STREAM_ALARM
- ACTION_AUDIO_BECOMING_NOISY
- isMusicActive ( )
- playSoundEffect ( )
- stopBluetoothSco ( )
- dispatchMediaKeyEvent ( )
- MODE_IN_CALL
- FX_KEYPRESS_SPACEBAR
- AUDIOFOCUS_NONE
- setStreamMute ( )
- SCO_AUDIO_STATE_CONNECTED
- getMode ( )
- getDevices ( )
- AUDIOFOCUS_REQUEST_FAILED
- AUDIOFOCUS_GAIN_TRANSIENT
- getProperty ( )
- OnAudioFocusChangeListener ( )
- AUDIO_SESSION_ID_GENERATE
- AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK
- VIBRATE_SETTING_ON
- isSpeakerphoneOn ( )
- ACTION_HDMI_AUDIO_PLUG
- isBluetoothScoOn ( )
- MODE_IN_COMMUNICATION
- setMicrophoneMute ( )
- FX_KEYPRESS_RETURN
- SCO_AUDIO_STATE_DISCONNECTED
- isBluetoothScoAvailableOffCall ( )
- STREAM_ACCESSIBILITY
- FLAG_SHOW_UI
- ACTION_SCO_AUDIO_STATE_UPDATED
- isMicrophoneMute ( )
- isBluetoothA2dpOn ( )
- STREAM_DTMF
- unregisterMediaButtonEventReceiver ( )
- GET_DEVICES_OUTPUTS
- FLAG_PLAY_SOUND
- adjustVolume ( )
- registerAudioDeviceCallback ( )
Related Classes
- java.io.File
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- java.io.FileInputStream
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.os.Handler
- android.net.Uri
- android.text.TextUtils
- android.view.MotionEvent
- android.content.pm.PackageManager
- android.content.SharedPreferences
- android.annotation.TargetApi
- android.annotation.SuppressLint
- android.view.WindowManager
- android.content.IntentFilter
- android.view.KeyEvent
Java Code Examples for android.media.AudioManager#isMicrophoneMute()
The following examples show how to use
android.media.AudioManager#isMicrophoneMute() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AudioManagerUtils.java From DevUtils with Apache License 2.0 | 5 votes |
/** * 判断麦克风是否静音 * @return {@code true} yes, {@code false} no */ public static boolean isMicrophoneMute() { AudioManager audioManager = AppUtils.getAudioManager(); if (audioManager != null) { try { return audioManager.isMicrophoneMute(); } catch (Exception e) { LogPrintUtils.eTag(TAG, e, "isMicrophoneMute"); } } return false; }
Example 2
Source File: MediaUtils.java From q-municate-android with Apache License 2.0 | 4 votes |
public static boolean isMicrophoneMuted(Activity activity) { AudioManager audioManager = (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE); return audioManager.isMicrophoneMute(); }