¡@

Home 

2014/10/16 ¤W¤È 08:10:38

android Programming Glossary: bluetoothheadsetutils

Using the Android RecognizerIntent with a bluetooth headset

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

new BluetoothHelper this @Override onResume mBluetoothHelper.start @Override onPause mBluetoothHelper.stop inner class BluetoothHeadsetUtils is an abstract class that has 4 abstracts methods that need to be implemented. private class BluetoothHelper extends BluetoothHeadSetUtils.. String.valueOf AudioManager.STREAM_VOICE_CALL mTts.speak text TextToSpeech.QUEUE_FLUSH myHashRender Copy the BluetoothHeadsetUtils class to your project. import java.util.List import android.annotation.SuppressLint import android.bluetooth.BluetoothAdapter.. Sco audio connection is accepted but the connected device is not a headset. @author Hoan Nguyen public abstract class BluetoothHeadsetUtils private Context mContext private BluetoothAdapter mBluetoothAdapter private BluetoothHeadset mBluetoothHeadset private BluetoothDevice..