资源简介

实现功能: (1)打开应用,显示主界面,检测蓝牙功能是否打开,否则询问打开; (2)打开蓝牙功能后,点击“连接设备:”下的按钮选择已匹配的蓝牙设备进行连接; (3)若蓝牙设备未匹配,可点击旁边的 […] 按钮打开系统蓝牙设置界面,进行蓝牙匹配; (4)点击中央的上、下、左、右和中间按钮,可发送不同的蓝牙字符串消息; (5)蓝牙消息内容可通过点击 [设置] 按钮在设置界面中设置,设置的数据重启应用后依然有效; (6)其中,中间按钮具有长按按下、长按释放和点击三种不同效果; (7)本应用还附带来电监听功能,有来电时,会自动发送蓝牙消息; (8)点击 [退出] 按钮,关闭蓝牙连接,并且关闭安卓设备蓝牙功能。

资源截图

代码片段和文件信息

/**
 * Automatically generated file. DO NOT MODIFY
 */
package com.example.z.buletoothdemo.test;

public final class BuildConfig {
  public static final boolean DEBUG = Boolean.parseBoolean(“true“);
  public static final String APPLICATION_ID = “com.example.z.buletoothdemo.test“;
  public static final String BUILD_TYPE = “debug“;
  public static final String FLAVOR = ““;
  public static final int VERSION_CODE = 2;
  public static final String VERSION_NAME = “2.0“;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-08-04 20:45  bluetoothdemo\
     文件           8  2016-05-11 11:27  bluetoothdemo\.gitignore
     文件     1282274  2016-07-16 11:06  bluetoothdemo\bluetoothdemo-release.apk
     文件        8667  2016-08-04 20:45  bluetoothdemo\bluetoothdemo.iml
     目录           0  2016-08-02 15:28  bluetoothdemo\build\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\assets\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\assets\shaders\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\assets\shaders\androidTest\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\assets\shaders\androidTest\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\assets\shaders\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\res\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\res\rs\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\res\rs\androidTest\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\res\rs\androidTest\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\res\rs\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\aidl\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\aidl\androidTest\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\aidl\androidTest\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\aidl\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\example\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\example\z\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\example\z\buletoothdemo\
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\example\z\buletoothdemo\test\
     文件         471  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\androidTest\debug\com\example\z\buletoothdemo\test\BuildConfig.java
     目录           0  2016-08-02 15:28  bluetoothdemo\build\generated\source\buildConfig\debug\
............此处省略1586个文件信息

评论

共有 条评论