android手机蓝牙自动配对,连接,互发消息示例

上传者: fire_fire_fire | 上传时间: 2019-12-21 19:44:38 | 文件大小: 696KB | 文件类型: rar
内含可直接附加的项目,一个说明文档,代码中注释齐全 程序功能: 1.一台手机运行程序后选择服务端,自动打开蓝牙及蓝牙被发现(手机的打开蓝牙被发现功能需要人工确认),等待被连接 2.另一台手机运行程序后选择客户端,自动搜索选择了服务端的手机,进行自动配对(第一次手机之间的配对需要人工确认,后面不需要),并自动连接。这时在两台手机上均可看见连接成功,然后可以互发消息进行聊天 3.程序退出后自动关闭蓝牙 PS:谁有蓝牙快速连接的例子(根据蓝牙波段进行连接,无需配对,直接连接,类似蓝牙耳机)请与作者联系,谢谢

文件下载

资源详情

[{"title":"( 78 个子文件 696KB ) android手机蓝牙自动配对,连接,互发消息示例","children":[{"title":"蓝牙聊天程序说明文件.txt <span style='color:#111;'> 805B </span>","children":null,"spread":false},{"title":"BluetoothChat","children":[{"title":".project <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"ljj","children":[{"title":"bluetoothUtil","children":[{"title":"BluetoothClientService.java <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"TransmitBean.java <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"BluetoothServerConnThread.java <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"BluetoothTools.java <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"BluetoothClientConnThread.java <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"BluetoothServerService.java <span style='color:#111;'> 3.82KB </span>","children":null,"spread":false},{"title":"BluetoothCommunThread.java <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"bluetoothchat","children":[{"title":"ClientActivity.java <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"ServerActivity.java <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values-large","children":[{"title":"dimens.xml <span style='color:#111;'> 167B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"client.xml <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"server.xml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 810B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 108B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"ljj","children":[{"title":"bluetoothchat","children":[{"title":"BuildConfig.java <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 329.65KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 36.23KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 22.03KB </span>","children":null,"spread":false},{"title":"BluetoothChat.apk <span style='color:#111;'> 160.55KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"ljj","children":[{"title":"bluetoothUtil","children":[{"title":"BluetoothCommunThread.class <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"BluetoothClientService.class <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false},{"title":"BluetoothServerService.class <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"BluetoothClientService$3.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"BluetoothServerConnThread.class <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"BluetoothTools.class <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"BluetoothClientConnThread.class <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"BluetoothClientService$2.class <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"BluetoothServerService$1.class <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"BluetoothClientService$1.class <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"TransmitBean.class <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"BluetoothServerService$2.class <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"bluetoothchat","children":[{"title":"R$layout.class <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"ClientActivity.class <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ClientActivity$2.class <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"ServerActivity$1.class <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"ServerActivity.class <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 703B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"ServerActivity$2.class <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"ClientActivity$1.class <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"MainActivity$ButtonClickListener.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 328.70KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • sjx520139 :
    虽然不是我想要的但还是谢谢
    2021-07-07
  • guimei0715 :
    非常适合新手学习
    2020-07-18
  • CSSLMH :
    听简单的,入个门可以
    2019-08-23
  • 倚楼听风雨8 :
    挺好的,不错,谢谢分享
    2019-05-31
  • xmjaejae :
    不错 谢谢分享
    2019-04-13

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明