解决方案 »
- android 获取网络文件
- HELLO WORLD 在安卓上如何做的?有实例吗?
- 为android应用程序添加快捷方式
- android 用ksoap的包访问web在模拟机上运行正常,模拟机上就报错,求解,错误信息如下:
- 当view被加到xml中,怎样获得view的实例化对象?
- 请教高手~~~~~~~~~~~~~~~~~~~~~
- adb devices找不到设备求解。
- 如何在android应用层上,实现多个app之间共享主题、样式和图片等资源?
- 求教!!ubuntu下下载android源码的方法
- socket= serverSocket.accept();一直停住,debug显示为null
- 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协议连接外设蓝牙设备