¡@

Home 

2014/10/16 ¤W¤È 08:19:27

android Programming Glossary: misonheadsetsco

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

private AudioManager mAudioManager private boolean mIsCountDownOn private boolean mIsStarting private boolean mIsOnHeadsetSco private boolean mIsStarted private static final String TAG BluetoothHeadsetUtils NON NLS 1 Constructor @param context public.. else stopBluetooth11 @return true if audio is connected through headset. public boolean isOnHeadsetSco return mIsOnHeadsetSco public abstract void onHeadsetDisconnected public abstract void onHeadsetConnected public abstract void onScoAudioDisconnected.. AudioManager.SCO_AUDIO_STATE_ERROR if state AudioManager.SCO_AUDIO_STATE_CONNECTED mIsOnHeadsetSco true if mIsStarting When the device is connected before the application starts ACTION_ACL_CONNECTED will not be received..