解决方案 »
- java jni 怎么在windows环境中编译成linux下的so文件
- 安装apk时,解析包出现错误???
- android广播机制理解是否有错?
- 以下这些是android2.1系统标准目录吗?
- build-in keyboard settings
- onLongPress手势不能识别
- 数据库操作
- Can't process class [com/c/a/a/e.class] (Unknown verification type [255] in stac
- <求助>关于运行Android项目是经常出现的错误
- 用Calendar类做切换周的日历问题
- Android 多线程问题
- robotium:针对只有APK的工程,在debug或代码中执行没问题,但是到工程中右键执行报错
int disconnectSink(String address)
private BluetoothA2dp mBTA2DP; mBTAdapter = BluetoothAdapter.getDefaultAdapter();
mBTAdapter.getProfileProxy(mContext, mProfileServiceListener, BluetoothProfile.A2DP); private BluetoothProfile.ServiceListener mProfileServiceListener = new BluetoothProfile.ServiceListener() {
@Override
public void onServiceConnected(int profile, BluetoothProfile proxy) {
mBTA2DP = (BluetoothA2dp)proxy;
break;
}
} 取得mBTA2DP实例后,mBTA2DP.connect(BluetoothDevice device); 即可通过A2DP协议连接外设蓝牙设备