android Programming Glossary: mbluetoothheadset
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset BluetoothHeadsetUtils private Context mContext private BluetoothAdapter mBluetoothAdapter private BluetoothHeadset mBluetoothHeadset private BluetoothDevice mConnectedHeadset private AudioManager mAudioManager private boolean mIsCountDownOn private boolean.. stopBluetooth11 Log.d TAG stopBluetooth11 NON NLS 1 if mIsCountDownOn mIsCountDownOn false mCountDown11.cancel if mBluetoothHeadset null Need to call stopVoiceRecognition here when the app change orientation or close with headset still turns on. mBluetoothHeadset.stopVoiceRecognition.. null Need to call stopVoiceRecognition here when the app change orientation or close with headset still turns on. mBluetoothHeadset.stopVoiceRecognition mConnectedHeadset mContext.unregisterReceiver mHeadsetBroadcastReceiver mBluetoothAdapter.closeProfileProxy..
|