2018年12月28日星期五
android 藍芽入門
1. 三篇文章
https://blog.csdn.net/huangliniqng/article/details/82185983
https://blog.csdn.net/huangliniqng/article/details/82187966
https://blog.csdn.net/huangliniqng/article/details/82189735
2. Discovery bluetooth device example
https://blog.csdn.net/zhangphil/article/details/77896924
3. 配對 :
private void pairDevice(BluetoothDevice device) {
try {
Method method = device.getClass().getMethod("createBond", (Class[]) null);
method.invoke(device, (Object[]) null);
} catch (Exception e) {
e.printStackTrace();
}
}
參考 : http://www.londatiga.net/it/programming/android/how-to-programmatically-pair-or-unpair-android-bluetooth-device/
訂閱:
發佈留言 (Atom)
沒有留言:
發佈留言