资源
androidBluetoothChar.md
android蓝牙聊天
介绍
androidBluetoothChar是google为android提供的Bluetooth的demo。它的功能是2台手机通过蓝牙连接,
在app中输入你发送给对方的消息,然后再另一台手机上显示发过来的消息,可以输入字符,进行回复给发送
对方
构建过程
构建环境
- android studio 3.4.1
- url: https://github.com/googlesamples/android-BluetoothChat.git
设置API版本
右击android-BlutoothChar,点击"open module setting", 进行设置SDK为"android API28"
安装
![](https://github.com/yangang123/yangang123.github.io/raw/master/3-android/resource/bluetooth_change_API_platform.jpg)
安装构建工具
通过编译信息提示安装build tools 27.0.2的工具
安装
![](https://github.com/yangang123/yangang123.github.io/raw/master/3-android/resource/bluetooth_instatll_build_tools.jpg)
修改SDK最小版本
SDK最小版本为API28
安装
![](https://github.com/yangang123/yangang123.github.io/raw/master/3-android/resource/bluetooth_change_min_SDK_version.jpg)
编译完成
编译完成,绿色的运行按钮会常亮
安装
![](https://github.com/yangang123/yangang123.github.io/raw/master/3-android/resource/bluetooth_build_finish.jpg)