List of usage examples for android.media AudioManager MODE_NORMAL
int MODE_NORMAL
To view the source code for android.media AudioManager MODE_NORMAL.
Click Source Link
From source file:org.sipdroid.sipua.ui.Receiver.java
public static void progress() { if (call_state == UserAgent.UA_STATE_IDLE) return;/* w w w . j av a2s . c o m*/ int mode = RtpStreamReceiver.speakermode; if (mode == -1) mode = speakermode(); if (mode == AudioManager.MODE_NORMAL) Receiver.onText(Receiver.CALL_NOTIFICATION, mContext.getString(R.string.menu_speaker), android.R.drawable.stat_sys_speakerphone, Receiver.ccCall.base); else if (bluetooth > 0) Receiver.onText(Receiver.CALL_NOTIFICATION, mContext.getString(R.string.menu_bluetooth), R.drawable.stat_sys_phone_call_bluetooth, Receiver.ccCall.base); else Receiver.onText(Receiver.CALL_NOTIFICATION, mContext.getString(R.string.card_title_in_progress), R.drawable.stat_sys_phone_call, Receiver.ccCall.base); }
From source file:org.sipdroid.sipua.ui.Receiver.java
public static int speakermode() { if (docked > 0 && headset <= 0) return AudioManager.MODE_NORMAL; else//from w w w . ja v a 2 s . com return AudioManager.MODE_IN_CALL; }