¡@

Home 

2014/10/16 ¤W¤È 08:18:59

android Programming Glossary: mconnectedheadset

Using the Android RecognizerIntent with a bluetooth headset

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

BluetoothHeadset mBluetoothHeadset private BluetoothDevice mConnectedHeadset private AudioManager mAudioManager private boolean mIsCountDownOn.. still turns on. mBluetoothHeadset.stopVoiceRecognition mConnectedHeadset mContext.unregisterReceiver mHeadsetBroadcastReceiver mBluetoothAdapter.closeProfileProxy.. if action.equals BluetoothDevice.ACTION_ACL_CONNECTED mConnectedHeadset intent.getParcelableExtra BluetoothDevice.EXTRA_DEVICE BluetoothClass..

Using the Android RecognizerIntent with a bluetooth headset

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

mContext private BluetoothAdapter mBluetoothAdapter private BluetoothHeadset mBluetoothHeadset private BluetoothDevice mConnectedHeadset private AudioManager mAudioManager private boolean mIsCountDownOn private boolean mIsStarting private boolean mIsOnHeadsetSco.. here when the app change orientation or close with headset still turns on. mBluetoothHeadset.stopVoiceRecognition mConnectedHeadset mContext.unregisterReceiver mHeadsetBroadcastReceiver mBluetoothAdapter.closeProfileProxy BluetoothProfile.HEADSET mBluetoothHeadset.. Context context Intent intent String action intent.getAction if action.equals BluetoothDevice.ACTION_ACL_CONNECTED mConnectedHeadset intent.getParcelableExtra BluetoothDevice.EXTRA_DEVICE BluetoothClass bluetoothClass mConnectedHeadset.getBluetoothClass..