简体   繁体   中英

Connect Two Devices using bluetooth Android?

我想使用android中的蓝牙编程连接两个设备,请指导我,我确实要求您不要参考Android文档,这的确写得很差,所以只用您自己的话解释一下

Bluetooth Chat Application

I have found that the sample applications fill in a lot of the gaps in the documentation, and is generally my first source of inspiration when investigating an android feature.

Edit

If you've downloaded the SDK these sample apps are usually bundled with the SDK. For me this app is found under.

  • \\android-sdk-windows\\samples\\android-7\\BluetoothChat

Update

It lists any paired devices and devices detected in the area after discovery. When a device is chosen by the user, the MAC address of the device is sent back to the parent Activity in the result Intent.

Seems pretty straight forward, what part are you having difficulty with?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM