安卓蓝牙4.0简单例程(AndroidBle).zip
下载

所属分类:移动开发 > Android
文件大小:230.12 KB
上传日期:2019/3/15 10:03:25
MD5:f914837352************bac0947995
资源说明:android 蓝牙4.0简单例程,主要实现手机与蓝牙连接交互,因为自己的项目中有用到了蓝牙相关的功能,所以之前也断断续续地针对蓝牙通信尤其是BLE通信进行了一番探索,整理出的代码。
移动页面: MIP AMP

[资源合计] 文件夹:49,文件:126

# 文件名称 大小 最后修改时间
1 AndroidBle-20180509 0 Bytes 2018/5/9 18:00:11
2 AndroidBle-20180509\.gitignore 118 Bytes 2018/5/9 18:00:11
3 AndroidBle-20180509\.idea 0 Bytes 2018/5/9 18:00:11
4 AndroidBle-20180509\.idea\codeStyles 0 Bytes 2018/5/9 18:00:11
5 AndroidBle-20180509\.idea\codeStyles\Project.xml 1.73 KB 2018/5/9 18:00:11
6 AndroidBle-20180509\.idea\vcs.xml 167 Bytes 2018/5/9 18:00:11
7 AndroidBle-20180509\README.md 4.23 KB 2018/5/9 18:00:11
8 AndroidBle-20180509\app 0 Bytes 2018/5/9 18:00:11
9 AndroidBle-20180509\app\.gitignore 7 Bytes 2018/5/9 18:00:11
10 AndroidBle-20180509\app\build.gradle 1.29 KB 2018/5/9 18:00:11
11 AndroidBle-20180509\app\proguard-rules.pro 939 Bytes 2018/5/9 18:00:11
12 AndroidBle-20180509\app\src 0 Bytes 2018/5/9 18:00:11
13 AndroidBle-20180509\app\src\main 0 Bytes 2018/5/9 18:00:11
14 AndroidBle-20180509\app\src\main\AndroidManifest.xml 2.1 KB 2018/5/9 18:00:11
15 AndroidBle-20180509\app\src\main\java 0 Bytes 2018/5/9 18:00:11
16 AndroidBle-20180509\app\src\main\java\org 0 Bytes 2018/5/9 18:00:11
17 AndroidBle-20180509\app\src\main\java\org\eson 0 Bytes 2018/5/9 18:00:11
18 AndroidBle-20180509\app\src\main\java\org\eson\liteble 0 Bytes 2018/5/9 18:00:11
19 AndroidBle-20180509\app\src\main\java\org\eson\liteble\MyApplication.java 2.42 KB 2018/5/9 18:00:11
20 AndroidBle-20180509\app\src\main\java\org\eson\liteble\RxBus.java 651 Bytes 2018/5/9 18:00:11
21 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity 0 Bytes 2018/5/9 18:00:11
22 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\AboutActivity.java 2.39 KB 2018/5/9 18:00:11
23 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\BaseActivity.java 1.65 KB 2018/5/9 18:00:11
24 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\BaseBleActivity.java 3.59 KB 2018/5/9 18:00:11
25 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\BleDetailActivity.java 12.75 KB 2018/5/9 18:00:11
26 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\CharacteristicActivity.java 8.16 KB 2018/5/9 18:00:11
27 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\MainActivity.java 6.66 KB 2018/5/9 18:00:11
28 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\SendDataActivity.java 1.99 KB 2018/5/9 18:00:11
29 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\SettingActivity.java 3.52 KB 2018/5/9 18:00:11
30 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\fragment 0 Bytes 2018/5/9 18:00:11
31 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\fragment\BaseFragment.java 1.81 KB 2018/5/9 18:00:11
32 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\fragment\BondedDevicesFragment.java 5.55 KB 2018/5/9 18:00:11
33 AndroidBle-20180509\app\src\main\java\org\eson\liteble\activity\fragment\DeviceScanFragment.java 8.56 KB 2018/5/9 18:00:11
34 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter 0 Bytes 2018/5/9 18:00:11
35 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\BleDataAdapter.java 2.87 KB 2018/5/9 18:00:11
36 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\BondedDevAdapter.java 2.2 KB 2018/5/9 18:00:11
37 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\DeviceDetailAdapter.java 3.73 KB 2018/5/9 18:00:11
38 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\MyBaseAdapter.java 1.32 KB 2018/5/9 18:00:11
39 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\ScanBLEItem.java 2.72 KB 2018/5/9 18:00:11
40 AndroidBle-20180509\app\src\main\java\org\eson\liteble\adapter\UUIDAdapter.java 2.59 KB 2018/5/9 18:00:11
41 AndroidBle-20180509\app\src\main\java\org\eson\liteble\bean 0 Bytes 2018/5/9 18:00:11
42 AndroidBle-20180509\app\src\main\java\org\eson\liteble\bean\BleDataBean.java 1.12 KB 2018/5/9 18:00:11
43 AndroidBle-20180509\app\src\main\java\org\eson\liteble\bean\CharacterBean.java 2.9 KB 2018/5/9 18:00:11
44 AndroidBle-20180509\app\src\main\java\org\eson\liteble\bean\DescriptorBean.java 1.32 KB 2018/5/9 18:00:11
45 AndroidBle-20180509\app\src\main\java\org\eson\liteble\bean\ServiceBean.java 798 Bytes 2018/5/9 18:00:11
46 AndroidBle-20180509\app\src\main\java\org\eson\liteble\common 0 Bytes 2018/5/9 18:00:11
47 AndroidBle-20180509\app\src\main\java\org\eson\liteble\common\ConnectedDevice.java 1.45 KB 2018/5/9 18:00:11
48 AndroidBle-20180509\app\src\main\java\org\eson\liteble\service 0 Bytes 2018/5/9 18:00:11
49 AndroidBle-20180509\app\src\main\java\org\eson\liteble\service\BleService.java 7.92 KB 2018/5/9 18:00:11
50 AndroidBle-20180509\app\src\main\java\org\eson\liteble\share 0 Bytes 2018/5/9 18:00:11
51 AndroidBle-20180509\app\src\main\java\org\eson\liteble\share\ConfigShare.java 1.03 KB 2018/5/9 18:00:11
52 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util 0 Bytes 2018/5/9 18:00:11
53 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\BondedDeviceBean.java 1.53 KB 2018/5/9 18:00:11
54 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\BondedDeviceUtil.java 2.73 KB 2018/5/9 18:00:11
55 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\CommonShare.java 2 KB 2018/5/9 18:00:11
56 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\LogUtil.java 737 Bytes 2018/5/9 18:00:11
57 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\ToastUtil.java 1.59 KB 2018/5/9 18:00:11
58 AndroidBle-20180509\app\src\main\java\org\eson\liteble\util\UUIDFormat.java 781 Bytes 2018/5/9 18:00:11
59 AndroidBle-20180509\app\src\main\java\org\eson\liteble\widget 0 Bytes 2018/5/9 18:00:11
60 AndroidBle-20180509\app\src\main\java\org\eson\liteble\widget\CustomListView.java 706 Bytes 2018/5/9 18:00:11
61 AndroidBle-20180509\app\src\main\res 0 Bytes 2018/5/9 18:00:11
62 AndroidBle-20180509\app\src\main\res\anim 0 Bytes 2018/5/9 18:00:11
63 AndroidBle-20180509\app\src\main\res\anim\anim_listview_item.xml 925 Bytes 2018/5/9 18:00:11
64 AndroidBle-20180509\app\src\main\res\anim\list_anim.xml 979 Bytes 2018/5/9 18:00:11
65 AndroidBle-20180509\app\src\main\res\layout 0 Bytes 2018/5/9 18:00:11
66 AndroidBle-20180509\app\src\main\res\layout\action_bar_progress.xml 1.01 KB 2018/5/9 18:00:11
67 AndroidBle-20180509\app\src\main\res\layout\activity_about.xml 3.09 KB 2018/5/9 18:00:11
68 AndroidBle-20180509\app\src\main\res\layout\activity_characteristic.xml 4.37 KB 2018/5/9 18:00:11
69 AndroidBle-20180509\app\src\main\res\layout\activity_detail.xml 1.59 KB 2018/5/9 18:00:11
70 AndroidBle-20180509\app\src\main\res\layout\activity_main.xml 1.05 KB 2018/5/9 18:00:11
71 AndroidBle-20180509\app\src\main\res\layout\activity_send_data.xml 1021 Bytes 2018/5/9 18:00:11
72 AndroidBle-20180509\app\src\main\res\layout\activity_setting.xml 3.14 KB 2018/5/9 18:00:11
73 AndroidBle-20180509\app\src\main\res\layout\content_main.xml 784 Bytes 2018/5/9 18:00:11
74 AndroidBle-20180509\app\src\main\res\layout\fragment_bonded_device.xml 1.05 KB 2018/5/9 18:00:11
75 AndroidBle-20180509\app\src\main\res\layout\fragment_scan_device.xml 1.16 KB 2018/5/9 18:00:11
76 AndroidBle-20180509\app\src\main\res\layout\item_data.xml 962 Bytes 2018/5/9 18:00:11
77 AndroidBle-20180509\app\src\main\res\layout\item_scan_device.xml 1.38 KB 2018/5/9 18:00:11
78 AndroidBle-20180509\app\src\main\res\layout\item_two_line.xml 745 Bytes 2018/5/9 18:00:11
79 AndroidBle-20180509\app\src\main\res\layout\item_uuid.xml 1.55 KB 2018/5/9 18:00:11
80 AndroidBle-20180509\app\src\main\res\layout\item_uuid_group.xml 1.58 KB 2018/5/9 18:00:11
81 AndroidBle-20180509\app\src\main\res\menu 0 Bytes 2018/5/9 18:00:11
82 AndroidBle-20180509\app\src\main\res\menu\menu_main.xml 939 Bytes 2018/5/9 18:00:11
83 AndroidBle-20180509\app\src\main\res\mipmap-hdpi 0 Bytes 2018/5/9 18:00:11
84 AndroidBle-20180509\app\src\main\res\mipmap-hdpi\ic_launcher.png 2.68 KB 2018/5/9 18:00:11
85 AndroidBle-20180509\app\src\main\res\mipmap-hdpi\ic_launcher_round.png 4.11 KB 2018/5/9 18:00:11
86 AndroidBle-20180509\app\src\main\res\mipmap-mdpi 0 Bytes 2018/5/9 18:00:11
87 AndroidBle-20180509\app\src\main\res\mipmap-mdpi\ic_launcher.png 2.68 KB 2018/5/9 18:00:11
88 AndroidBle-20180509\app\src\main\res\mipmap-mdpi\ic_launcher_round.png 2.5 KB 2018/5/9 18:00:11
89 AndroidBle-20180509\app\src\main\res\mipmap-xhdpi 0 Bytes 2018/5/9 18:00:11
90 AndroidBle-20180509\app\src\main\res\mipmap-xhdpi\ic_launcher.png 2.68 KB 2018/5/9 18:00:11
91 AndroidBle-20180509\app\src\main\res\mipmap-xhdpi\ic_launcher_round.png 5.97 KB 2018/5/9 18:00:11
92 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi 0 Bytes 2018/5/9 18:00:11
93 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi\ic_launcher.png 2.68 KB 2018/5/9 18:00:11
94 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi\ic_launcher_round.png 9.82 KB 2018/5/9 18:00:11
95 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi\icon_error.png 2.15 KB 2018/5/9 18:00:11
96 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi\icon_next.png 439 Bytes 2018/5/9 18:00:11
97 AndroidBle-20180509\app\src\main\res\mipmap-xxhdpi\icon_ok.png 1.48 KB 2018/5/9 18:00:11
98 AndroidBle-20180509\app\src\main\res\mipmap-xxxhdpi 0 Bytes 2018/5/9 18:00:11
99 AndroidBle-20180509\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png 2.68 KB 2018/5/9 18:00:11
100 AndroidBle-20180509\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.png 14.35 KB 2018/5/9 18:00:11
101 AndroidBle-20180509\app\src\main\res\values 0 Bytes 2018/5/9 18:00:11
102 AndroidBle-20180509\app\src\main\res\values\colors.xml 289 Bytes 2018/5/9 18:00:11
103 AndroidBle-20180509\app\src\main\res\values\dimens.xml 155 Bytes 2018/5/9 18:00:11
104 AndroidBle-20180509\app\src\main\res\values\strings.xml 1.18 KB 2018/5/9 18:00:11
105 AndroidBle-20180509\app\src\main\res\values\styles.xml 819 Bytes 2018/5/9 18:00:11
106 AndroidBle-20180509\blesdk 0 Bytes 2018/5/9 18:00:11
107 AndroidBle-20180509\blesdk\.gitignore 7 Bytes 2018/5/9 18:00:11
108 AndroidBle-20180509\blesdk\README.md 9 Bytes 2018/5/9 18:00:11
109 AndroidBle-20180509\blesdk\build.gradle 958 Bytes 2018/5/9 18:00:11
110 AndroidBle-20180509\blesdk\proguard-rules.pro 1.43 KB 2018/5/9 18:00:11
111 AndroidBle-20180509\blesdk\src 0 Bytes 2018/5/9 18:00:11
112 AndroidBle-20180509\blesdk\src\main 0 Bytes 2018/5/9 18:00:11
113 AndroidBle-20180509\blesdk\src\main\AndroidManifest.xml 643 Bytes 2018/5/9 18:00:11
114 AndroidBle-20180509\blesdk\src\main\java 0 Bytes 2018/5/9 18:00:11
115 AndroidBle-20180509\blesdk\src\main\java\com 0 Bytes 2018/5/9 18:00:11
116 AndroidBle-20180509\blesdk\src\main\java\com\e 0 Bytes 2018/5/9 18:00:11
117 AndroidBle-20180509\blesdk\src\main\java\com\e\ble 0 Bytes 2018/5/9 18:00:11
118 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\AndroidBLE.java 2.9 KB 2018/5/9 18:00:11
119 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\BLESdk.java 3.62 KB 2018/5/9 18:00:11
120 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\bean 0 Bytes 2018/5/9 18:00:11
121 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\bean\BLECharacter.java 2.54 KB 2018/5/9 18:00:11
122 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\bean\BLEConnBean.java 1.23 KB 2018/5/9 18:00:11
123 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\bean\BLEDevice.java 2.44 KB 2018/5/9 18:00:11
124 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\bean\BLEUuid.java 3.68 KB 2018/5/9 18:00:11
125 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\check 0 Bytes 2018/5/9 18:00:11
126 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\check\BLECheck.java 4.46 KB 2018/5/9 18:00:11
127 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\check\BLECheckListener.java 984 Bytes 2018/5/9 18:00:11
128 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\check\BLECheckUtil.java 2.49 KB 2018/5/9 18:00:11
129 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control 0 Bytes 2018/5/9 18:00:11
130 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLEConnList.java 3.22 KB 2018/5/9 18:00:11
131 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLEConnection.java 7.88 KB 2018/5/9 18:00:11
132 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLEControl.java 6.8 KB 2018/5/9 18:00:11
133 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLEGattCallBack.java 8.85 KB 2018/5/9 18:00:11
134 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLETransport.java 7.73 KB 2018/5/9 18:00:11
135 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\BLEUtil.java 5.81 KB 2018/5/9 18:00:11
136 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\GattCallback.java 2.8 KB 2018/5/9 18:00:11
137 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\GattClient.java 2.7 KB 2018/5/9 18:00:11
138 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener 0 Bytes 2018/5/9 18:00:11
139 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener\BLEConnListener.java 1.03 KB 2018/5/9 18:00:11
140 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener\BLEDescriptorListener.java 935 Bytes 2018/5/9 18:00:11
141 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener\BLEReadRssiListener.java 878 Bytes 2018/5/9 18:00:11
142 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener\BLEStateChangeListener.java 981 Bytes 2018/5/9 18:00:11
143 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\control\listener\BLETransportListener.java 1.03 KB 2018/5/9 18:00:11
144 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\receiver 0 Bytes 2018/5/9 18:00:11
145 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\receiver\BLEStateReceiver.java 2.39 KB 2018/5/9 18:00:11
146 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\receiver\listener 0 Bytes 2018/5/9 18:00:11
147 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\receiver\listener\BLEReceiverListener.java 886 Bytes 2018/5/9 18:00:11
148 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\scan 0 Bytes 2018/5/9 18:00:11
149 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\scan\BLEScanCallback.java 4.02 KB 2018/5/9 18:00:11
150 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\scan\BLEScanCfg.java 2.83 KB 2018/5/9 18:00:11
151 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\scan\BLEScanListener.java 1.03 KB 2018/5/9 18:00:11
152 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\scan\BLEScanner.java 5.98 KB 2018/5/9 18:00:11
153 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\support 0 Bytes 2018/5/9 18:00:11
154 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\support\BluetoothLeUtils.java 2.18 KB 2018/5/9 18:00:11
155 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\support\BluetoothUuid.java 12.63 KB 2018/5/9 18:00:11
156 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\support\ScanRecord.java 11.73 KB 2018/5/9 18:00:11
157 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util 0 Bytes 2018/5/9 18:00:11
158 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util\BLEByteUtil.java 2.93 KB 2018/5/9 18:00:11
159 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util\BLEConstant.java 1.6 KB 2018/5/9 18:00:11
160 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util\BLEError.java 999 Bytes 2018/5/9 18:00:11
161 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util\BLELog.java 2.41 KB 2018/5/9 18:00:11
162 AndroidBle-20180509\blesdk\src\main\java\com\e\ble\util\BLE_UUID_Util.java 3.89 KB 2018/5/9 18:00:11
163 AndroidBle-20180509\blesdk\src\main\res 0 Bytes 2018/5/9 18:00:11
164 AndroidBle-20180509\blesdk\src\main\res\values 0 Bytes 2018/5/9 18:00:11
165 AndroidBle-20180509\blesdk\src\main\res\values\strings.xml 69 Bytes 2018/5/9 18:00:11
166 AndroidBle-20180509\build.gradle 636 Bytes 2018/5/9 18:00:11
167 AndroidBle-20180509\gradle.properties 726 Bytes 2018/5/9 18:00:11
168 AndroidBle-20180509\gradle 0 Bytes 2018/5/9 18:00:11
169 AndroidBle-20180509\gradle\wrapper 0 Bytes 2018/5/9 18:00:11
170 AndroidBle-20180509\gradle\wrapper\gradle-wrapper.jar 52.38 KB 2018/5/9 18:00:11
171 AndroidBle-20180509\gradle\wrapper\gradle-wrapper.properties 230 Bytes 2018/5/9 18:00:11
172 AndroidBle-20180509\gradlew 4.85 KB 2018/5/9 18:00:11
173 AndroidBle-20180509\gradlew.bat 2.26 KB 2018/5/9 18:00:11
174 AndroidBle-20180509\settings.gradle 37 Bytes 2018/5/9 18:00:11
175 AndroidBle-20180509\代码更新记录.md 1.3 KB 2018/5/9 18:00:11

请留下有营养的评论,广告灌水一律拉黑处理,谢谢合作!


This page is cached at 20:55:32