├── AprilBeaconDemos
├── .classpath
├── .project
├── .settings
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── bin
│ ├── AndroidManifest.xml
│ ├── AprilBeaconDemo.apk
│ ├── classes.dex
│ ├── classes
│ │ └── com
│ │ │ └── aprilbrother
│ │ │ └── aprilbeacondemo
│ │ │ ├── BeaconAdapter$ViewHolder.class
│ │ │ ├── BeaconAdapter.class
│ │ │ ├── BeaconList$1.class
│ │ │ ├── BeaconList$2.class
│ │ │ ├── BeaconList$3.class
│ │ │ ├── BeaconList$4.class
│ │ │ ├── BeaconList$5.class
│ │ │ ├── BeaconList$6.class
│ │ │ ├── BeaconList.class
│ │ │ ├── BuildConfig.class
│ │ │ ├── ComparatorBeaconByRssi.class
│ │ │ ├── ComparatorEddyStoneByRssi.class
│ │ │ ├── EddyStoneAdapter$ViewHolder.class
│ │ │ ├── EddyStoneAdapter.class
│ │ │ ├── EddyStoneModifyActivity$1.class
│ │ │ ├── EddyStoneModifyActivity$2.class
│ │ │ ├── EddyStoneModifyActivity$3.class
│ │ │ ├── EddyStoneModifyActivity$4.class
│ │ │ ├── EddyStoneModifyActivity$5.class
│ │ │ ├── EddyStoneModifyActivity.class
│ │ │ ├── EddyStoneScanActivity$1.class
│ │ │ ├── EddyStoneScanActivity$2.class
│ │ │ ├── EddyStoneScanActivity$3.class
│ │ │ ├── EddyStoneScanActivity.class
│ │ │ ├── ModifyActivity$1.class
│ │ │ ├── ModifyActivity$10$1.class
│ │ │ ├── ModifyActivity$10$2.class
│ │ │ ├── ModifyActivity$10$3.class
│ │ │ ├── ModifyActivity$10$4.class
│ │ │ ├── ModifyActivity$10$5.class
│ │ │ ├── ModifyActivity$10$6.class
│ │ │ ├── ModifyActivity$10$7.class
│ │ │ ├── ModifyActivity$10$8.class
│ │ │ ├── ModifyActivity$10.class
│ │ │ ├── ModifyActivity$11.class
│ │ │ ├── ModifyActivity$2.class
│ │ │ ├── ModifyActivity$3$1.class
│ │ │ ├── ModifyActivity$3.class
│ │ │ ├── ModifyActivity$4$1.class
│ │ │ ├── ModifyActivity$4.class
│ │ │ ├── ModifyActivity$5$1.class
│ │ │ ├── ModifyActivity$5.class
│ │ │ ├── ModifyActivity$6$1.class
│ │ │ ├── ModifyActivity$6.class
│ │ │ ├── ModifyActivity$7$1.class
│ │ │ ├── ModifyActivity$7.class
│ │ │ ├── ModifyActivity$8.class
│ │ │ ├── ModifyActivity$9.class
│ │ │ ├── ModifyActivity.class
│ │ │ ├── NotificationUtils.class
│ │ │ ├── NotifyInContentActivity$1.class
│ │ │ ├── NotifyInContentActivity.class
│ │ │ ├── NotifyOutContentActivity$1.class
│ │ │ ├── NotifyOutContentActivity.class
│ │ │ ├── NotifyService$1.class
│ │ │ ├── NotifyService$2.class
│ │ │ ├── NotifyService$CreateNotification.class
│ │ │ ├── NotifyService.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$menu.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ ├── R.class
│ │ │ ├── RequestActivity.class
│ │ │ ├── ResultActivity.class
│ │ │ ├── SensorActivity$1.class
│ │ │ ├── SensorActivity$2.class
│ │ │ ├── SensorActivity.class
│ │ │ └── ServiceStatusUtils.class
│ ├── dexedLibs
│ │ ├── ab-sdk-beta-reset-callback-1.5.2-53353401e2af7bde7b3d755ea2a9e85a.jar
│ │ ├── ab-sdk-beta1.5.0-4ba6ef125984761558750ef1ef5d69a2.jar
│ │ ├── ab-sdk-beta1.5.3-891237005ff565e713a3576ae75c90b6.jar
│ │ ├── ab-sdk-beta1.5.4-dc269e51270d80967ee7125f10e577c4.jar
│ │ ├── ab-sdk-beta1.6.2-e4d711cd01137aece4ade404c5a885fd.jar
│ │ ├── ab-sdk-beta1.7.2-a2f2ba0c5a112141cb50290f2328a2e7.jar
│ │ ├── android-support-v4-98f6e94ccff835e115b44b1b2b12a389.jar
│ │ ├── android-support-v4-b8181558d3968d84691852c500626205.jar
│ │ └── libaprilbrothersdk1.0-8f5d62eb7b105921206cbe0a50707e4b.jar
│ ├── jarlist.cache
│ ├── proguard.txt
│ ├── res
│ │ └── crunch
│ │ │ ├── drawable-hdpi
│ │ │ ├── aprilbeacon.png
│ │ │ ├── beacon_gray.png
│ │ │ ├── codeversed_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ └── resources.ap_
├── gen
│ └── com
│ │ └── aprilbrother
│ │ └── aprilbeacondemo
│ │ ├── BuildConfig.java
│ │ └── R.java
├── ic_launcher-web.png
├── libs
│ ├── ab-sdk-beta1.7.3.jar
│ └── android-support-v4.jar
├── lint.xml
├── proguard-android.txt
├── proguard-project.txt
├── proguard
│ ├── dump.txt
│ ├── mapping.txt
│ ├── seeds.txt
│ └── usage.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ ├── aprilbeacon.png
│ │ ├── beacon_gray.png
│ │ ├── codeversed_logo.png
│ │ ├── ic_launcher.png
│ │ ├── logowithname.png
│ │ └── notifyout.jpg
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── layout
│ │ ├── activity_eddystone_modify.xml
│ │ ├── activity_eddystonescan.xml
│ │ ├── activity_main.xml
│ │ ├── activity_modify.xml
│ │ ├── activity_notify_in_content.xml
│ │ ├── activity_notify_out_content.xml
│ │ ├── activity_request.xml
│ │ ├── activity_sensor.xml
│ │ ├── device_item.xml
│ │ ├── devices_list_item.xml
│ │ ├── dialog_text.xml
│ │ └── notification_custom_remote.xml
│ ├── menu
│ │ └── main.xml
│ ├── values-en
│ │ └── strings.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ ├── values-zh
│ │ └── strings.xml
│ └── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── src
│ └── com
│ └── aprilbrother
│ └── aprilbeacondemo
│ ├── BeaconAdapter.java
│ ├── BeaconList.java
│ ├── ComparatorBeaconByRssi.java
│ ├── ComparatorEddyStoneByRssi.java
│ ├── EddyStoneAdapter.java
│ ├── EddyStoneModifyActivity.java
│ ├── EddyStoneScanActivity.java
│ ├── ModifyActivity.java
│ ├── NotificationUtils.java
│ ├── NotifyInContentActivity.java
│ ├── NotifyOutContentActivity.java
│ ├── NotifyService.java
│ ├── RequestActivity.java
│ ├── ResultActivity.java
│ ├── SensorActivity.java
│ └── ServiceStatusUtils.java
├── AprilBeaconDemos_android_studio
├── .gitignore
├── .idea
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── runConfigurations.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── libs
│ │ └── ab-sdk-beta1.7.3.jar
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── aprbrother
│ │ │ └── aprilbeacondemos
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── aprbrother
│ │ │ │ └── aprilbeacondemos
│ │ │ │ ├── BeaconAdapter.java
│ │ │ │ ├── BeaconList.java
│ │ │ │ ├── ComparatorBeaconByRssi.java
│ │ │ │ ├── ComparatorEddyStoneByRssi.java
│ │ │ │ ├── EddyStoneAdapter.java
│ │ │ │ ├── EddyStoneModifyActivity.java
│ │ │ │ ├── EddyStoneScanActivity.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ ├── ModifyActivity.java
│ │ │ │ ├── NotificationUtils.java
│ │ │ │ ├── NotifyInContentActivity.java
│ │ │ │ ├── NotifyOutContentActivity.java
│ │ │ │ ├── NotifyService.java
│ │ │ │ ├── RequestActivity.java
│ │ │ │ ├── ResultActivity.java
│ │ │ │ ├── SensorActivity.java
│ │ │ │ └── ServiceStatusUtils.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ ├── aprilbeacon.png
│ │ │ ├── beacon_gray.png
│ │ │ ├── codeversed_logo.png
│ │ │ ├── ic_launcher.png
│ │ │ ├── logowithname.png
│ │ │ └── notifyout.jpg
│ │ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── layout
│ │ │ ├── activity_eddystone_modify.xml
│ │ │ ├── activity_eddystonescan.xml
│ │ │ ├── activity_main.xml
│ │ │ ├── activity_modify.xml
│ │ │ ├── activity_notify_in_content.xml
│ │ │ ├── activity_notify_out_content.xml
│ │ │ ├── activity_request.xml
│ │ │ ├── activity_sensor.xml
│ │ │ ├── device_item.xml
│ │ │ ├── devices_list_item.xml
│ │ │ ├── dialog_text.xml
│ │ │ └── notification_custom_remote.xml
│ │ │ ├── menu
│ │ │ └── main.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── values-en
│ │ │ └── strings.xml
│ │ │ ├── values-sw600dp
│ │ │ └── dimens.xml
│ │ │ ├── values-sw720dp-land
│ │ │ └── dimens.xml
│ │ │ ├── values-v11
│ │ │ └── styles.xml
│ │ │ ├── values-v14
│ │ │ └── styles.xml
│ │ │ ├── values-zh
│ │ │ └── strings.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── aprbrother
│ │ └── aprilbeacondemos
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── AprilSDK
├── ab-sdk-beta1.7.3.jar
└── aprilscansdk.jar
├── README.md
├── aprilscan
├── .gitignore
├── aprilscan.iml
├── build.gradle
├── libs
│ └── aprilscansdk.jar
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── aprbrother
│ │ └── aprilscan
│ │ ├── BeaconAdapter.java
│ │ ├── ComparatorBeaconByRssi.java
│ │ ├── ComparatorEddyStoneByRssi.java
│ │ ├── EddyStoneAdapter.java
│ │ ├── EddyStoneScanActivity.java
│ │ └── MainActivity.java
│ └── res
│ ├── layout
│ ├── activity_eddystonescan.xml
│ ├── activity_main.xml
│ ├── device_item.xml
│ └── devices_list_item.xml
│ ├── mipmap-hdpi
│ └── ic_launcher.png
│ ├── mipmap-mdpi
│ └── ic_launcher.png
│ ├── mipmap-xhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxxhdpi
│ └── ic_launcher.png
│ ├── values-w820dp
│ └── dimens.xml
│ └── values
│ ├── colors.xml
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
└── proguard.jar
/AprilBeaconDemos/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | AprilBeaconDemo
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
28 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
55 |
56 |
59 |
62 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
23 |
28 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
55 |
56 |
59 |
62 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/AprilBeaconDemo.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/AprilBeaconDemo.apk
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes.dex
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconAdapter.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$3.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$4.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$5.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList$6.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BeaconList.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/BuildConfig.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ComparatorBeaconByRssi.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ComparatorBeaconByRssi.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ComparatorEddyStoneByRssi.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ComparatorEddyStoneByRssi.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneAdapter.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$3.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$4.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity$5.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneModifyActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity$3.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$3.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$4.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$5.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$6.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$7.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10$8.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$10.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$11.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$11.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$3$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$3$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$3.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$4$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$4$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$4.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$4.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$5$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$5$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$5.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$5.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$6$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$6$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$6.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$6.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$7$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$7$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$7.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$7.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$8.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$8.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$9.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity$9.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ModifyActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotificationUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotificationUtils.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyInContentActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyInContentActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyInContentActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyInContentActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyOutContentActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyOutContentActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyOutContentActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyOutContentActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$CreateNotification.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService$CreateNotification.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/NotifyService.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$attr.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$dimen.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$drawable.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$id.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$layout.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$menu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$menu.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$string.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R$style.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/R.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/RequestActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/RequestActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ResultActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ResultActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity$1.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity$2.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/SensorActivity.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ServiceStatusUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/classes/com/aprilbrother/aprilbeacondemo/ServiceStatusUtils.class
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta-reset-callback-1.5.2-53353401e2af7bde7b3d755ea2a9e85a.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta-reset-callback-1.5.2-53353401e2af7bde7b3d755ea2a9e85a.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.0-4ba6ef125984761558750ef1ef5d69a2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.0-4ba6ef125984761558750ef1ef5d69a2.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.3-891237005ff565e713a3576ae75c90b6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.3-891237005ff565e713a3576ae75c90b6.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.4-dc269e51270d80967ee7125f10e577c4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.5.4-dc269e51270d80967ee7125f10e577c4.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.6.2-e4d711cd01137aece4ade404c5a885fd.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.6.2-e4d711cd01137aece4ade404c5a885fd.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.7.2-a2f2ba0c5a112141cb50290f2328a2e7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/ab-sdk-beta1.7.2-a2f2ba0c5a112141cb50290f2328a2e7.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/android-support-v4-98f6e94ccff835e115b44b1b2b12a389.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/android-support-v4-98f6e94ccff835e115b44b1b2b12a389.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/android-support-v4-b8181558d3968d84691852c500626205.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/android-support-v4-b8181558d3968d84691852c500626205.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/dexedLibs/libaprilbrothersdk1.0-8f5d62eb7b105921206cbe0a50707e4b.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/dexedLibs/libaprilbrothersdk1.0-8f5d62eb7b105921206cbe0a50707e4b.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependency. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/proguard.txt:
--------------------------------------------------------------------------------
1 | # view AndroidManifest.xml #generated:28
2 | -keep class com.aprilbrother.aprilbeacondemo.BeaconList { (...); }
3 |
4 | # view AndroidManifest.xml #generated:47
5 | -keep class com.aprilbrother.aprilbeacondemo.EddyStoneModifyActivity { (...); }
6 |
7 | # view AndroidManifest.xml #generated:45
8 | -keep class com.aprilbrother.aprilbeacondemo.EddyStoneScanActivity { (...); }
9 |
10 | # view AndroidManifest.xml #generated:37
11 | -keep class com.aprilbrother.aprilbeacondemo.ModifyActivity { (...); }
12 |
13 | # view AndroidManifest.xml #generated:62
14 | -keep class com.aprilbrother.aprilbeacondemo.NotifyService { (...); }
15 |
16 | # view AndroidManifest.xml #generated:39
17 | -keep class com.aprilbrother.aprilbeacondemo.RequestActivity { (...); }
18 |
19 | # view AndroidManifest.xml #generated:41
20 | -keep class com.aprilbrother.aprilbeacondemo.ResultActivity { (...); }
21 |
22 | # view AndroidManifest.xml #generated:43
23 | -keep class com.aprilbrother.aprilbeacondemo.SensorActivity { (...); }
24 |
25 | # view AndroidManifest.xml #generated:52
26 | -keep class com.aprilbrother.aprilbrothersdk.service.BeaconService { (...); }
27 |
28 | # view AndroidManifest.xml #generated:56
29 | -keep class com.aprilbrother.aprilbrothersdk.services.ABeaconUartService { (...); }
30 |
31 | # view AndroidManifest.xml #generated:59
32 | -keep class com.aprilbrother.aprilbrothersdk.services.UartService { (...); }
33 |
34 | # onClick res/layout/activity_modify.xml #generated:303
35 | # onClick res/layout/activity_modify.xml #generated:337
36 | # onClick res/layout/activity_modify.xml #generated:371
37 | -keepclassmembers class * { *** getAdvinterval(...); }
38 |
39 | # onClick res/layout/activity_modify.xml #generated:235
40 | -keepclassmembers class * { *** getBattery(...); }
41 |
42 | # onClick res/layout/activity_modify.xml #generated:269
43 | -keepclassmembers class * { *** getTxPower(...); }
44 |
45 | # onClick res/layout/activity_modify.xml #generated:381
46 | -keepclassmembers class * { *** notify(...); }
47 |
48 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/aprilbeacon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/aprilbeacon.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/beacon_gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/beacon_gray.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/codeversed_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/codeversed_logo.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/res/crunch/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/bin/resources.ap_
--------------------------------------------------------------------------------
/AprilBeaconDemos/gen/com/aprilbrother/aprilbeacondemo/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package com.aprilbrother.aprilbeacondemo;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/AprilBeaconDemos/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/ic_launcher-web.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/libs/ab-sdk-beta1.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/libs/ab-sdk-beta1.7.3.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/proguard-android.txt:
--------------------------------------------------------------------------------
1 | # This is a configuration file for ProGuard.
2 | # http://proguard.sourceforge.net/index.html#manual/usage.html
3 |
4 | -dontusemixedcaseclassnames
5 | -dontskipnonpubliclibraryclasses
6 | -verbose
7 |
8 | # Optimization is turned off by default. Dex does not like code run
9 | # through the ProGuard optimize and preverify steps (and performs some
10 | # of these optimizations on its own).
11 | -dontoptimize
12 | -dontpreverify
13 | # Note that if you want to enable optimization, you cannot just
14 | # include optimization flags in your own project configuration file;
15 | # instead you will need to point to the
16 | # "proguard-android-optimize.txt" file instead of this one from your
17 | # project.properties file.
18 |
19 | -keepattributes *Annotation*
20 | -keep public class com.google.vending.licensing.ILicensingService
21 | -keep public class com.android.vending.licensing.ILicensingService
22 |
23 | # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
24 | -keepclasseswithmembernames class * {
25 | native ;
26 | }
27 |
28 | # keep setters in Views so that animations can still work.
29 | # see http://proguard.sourceforge.net/manual/examples.html#beans
30 | -keepclassmembers public class * extends android.view.View {
31 | void set*(***);
32 | *** get*();
33 | }
34 |
35 | # We want to keep methods in Activity that could be used in the XML attribute onClick
36 | -keepclassmembers class * extends android.app.Activity {
37 | public void *(android.view.View);
38 | }
39 |
40 | # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
41 | -keepclassmembers enum * {
42 | public static **[] values();
43 | public static ** valueOf(java.lang.String);
44 | }
45 |
46 | -keep class * implements android.os.Parcelable {
47 | public static final android.os.Parcelable$Creator *;
48 | }
49 |
50 | -keepclassmembers class **.R$* {
51 | public static ;
52 | }
53 |
54 | # The support library contains references to newer platform versions.
55 | # Don't warn about those in case this app is linking against an older
56 | # platform version. We know about them, and they are safe.
57 | -dontwarn android.support.**
58 |
59 | -libraryjars libs/ab-sdk-beta1.6.1.jar
60 | -keep class com.aprilbrother.aprilbrothersdk.**
61 | -keep class com.aprilbrother.aprilbrothersdk.Utils{*;}
62 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/proguard/dump.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/proguard/dump.txt
--------------------------------------------------------------------------------
/AprilBeaconDemos/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 | proguard.config=proguard-android.txt
13 | # Project target.
14 | target=android-18
15 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/aprilbeacon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/aprilbeacon.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/beacon_gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/beacon_gray.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/codeversed_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/codeversed_logo.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/logowithname.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/logowithname.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-hdpi/notifyout.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-hdpi/notifyout.jpg
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_eddystone_modify.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
15 |
16 |
27 |
28 |
39 |
40 |
51 |
52 |
63 |
64 |
75 |
76 |
82 |
83 |
95 |
96 |
102 |
103 |
115 |
116 |
121 |
122 |
133 |
134 |
139 |
140 |
151 |
152 |
153 |
154 |
155 |
156 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_eddystonescan.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
19 |
20 |
27 |
28 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_notify_in_content.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_notify_out_content.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/activity_request.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/device_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
24 |
25 |
29 |
30 |
34 |
35 |
39 |
40 |
44 |
45 |
46 |
50 |
51 |
55 |
56 |
60 |
61 |
62 |
66 |
67 |
71 |
72 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/devices_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
13 |
20 |
21 |
26 |
27 |
32 |
33 |
34 |
41 |
42 |
47 |
48 |
49 |
57 |
58 |
63 |
64 |
70 |
71 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/dialog_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/layout/notification_custom_remote.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
19 |
20 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-en/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 | Modify Beacon
8 | Start Modify
9 | Get Device Information
10 | Battery:
11 | Get Battery
12 | Power:
13 | Get Power
14 | Advinterval:
15 | Get Advinterval
16 | Firmware:
17 | Get Firmware
18 | Manufacturer:
19 | Get Manufacturer
20 | Start Background Notify
21 | Input Password
22 | Cancel
23 | Sure
24 | Codeversed Logo
25 | Normal
26 | Big Text Style
27 | Big Picture Style
28 | Inbox Style
29 | Custom View
30 | change model to URL
31 | current model:
32 | change model to UID
33 | change model to iBeacon
34 | change model to iBeacon_UID_URL
35 | change ULR
36 | change UID
37 | change uid_name_space
38 | change uid_custom
39 |
40 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 | 修改beacon参数
8 | 开始修改
9 | 获取设备信息
10 | 电量:
11 | 获取电量
12 | 发射功率:
13 | 获取发射功率
14 | 广播频率:
15 | 获取广播频率
16 | 固件版本:
17 | 获取固件版本
18 | 制造商:
19 | 获取制造商
20 | 开启后台通知
21 | 输入密码
22 | 取消
23 | 确定
24 | 更改模式为ULR
25 | 当前模式:
26 | 更改模式为UID
27 | 更改模式为iBeacon
28 | 更改模式为iBeacon_UID_URL
29 | 更改ULR
30 | 更改UID
31 | 更改uid_name_space
32 | 更改uid_custom
33 |
34 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 | Codeversed Logo
8 | Normal
9 | Big Text Style
10 | Big Picture Style
11 | Inbox Style
12 | Custom View
13 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
26 |
27 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/BeaconAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.math.BigDecimal;
4 | import java.util.ArrayList;
5 | import java.util.Collection;
6 |
7 | import android.content.Context;
8 | import android.text.TextUtils;
9 | import android.util.Log;
10 | import android.view.LayoutInflater;
11 | import android.view.View;
12 | import android.view.ViewGroup;
13 | import android.widget.BaseAdapter;
14 | import android.widget.TextView;
15 |
16 | import com.aprilbrother.aprilbrothersdk.Beacon;
17 |
18 | public class BeaconAdapter extends BaseAdapter {
19 |
20 | private ArrayList beacons;
21 | private LayoutInflater inflater;
22 |
23 | public BeaconAdapter(Context context) {
24 | this.inflater = LayoutInflater.from(context);
25 | this.beacons = new ArrayList();
26 | }
27 |
28 | public void replaceWith(Collection newBeacons) {
29 | this.beacons.clear();
30 | this.beacons.addAll(newBeacons);
31 | notifyDataSetChanged();
32 | }
33 |
34 | @Override
35 | public int getCount() {
36 | return beacons.size();
37 | }
38 |
39 | @Override
40 | public Beacon getItem(int position) {
41 | return beacons.get(position);
42 | }
43 |
44 | @Override
45 | public long getItemId(int position) {
46 | return position;
47 | }
48 |
49 | @Override
50 | public View getView(int position, View view, ViewGroup parent) {
51 | view = inflateIfRequired(view, position, parent);
52 | bind(getItem(position), view);
53 | return view;
54 | }
55 |
56 | private void bind(Beacon beacon, View view) {
57 | ViewHolder holder = (ViewHolder) view.getTag();
58 | holder.macTextView.setText("MAC : " + beacon.getMacAddress() + "("
59 | + beacon.getDistance() + "m)");
60 | holder.uuidTextView.setText("UUID: " + beacon.getProximityUUID());
61 | holder.majorTextView.setText("Major: " + beacon.getMajor());
62 | holder.minorTextView.setText("Minor: " + beacon.getMinor());
63 | holder.measuredPowerTextView.setText("MPower: "
64 | + beacon.getMeasuredPower());
65 | holder.rssiTextView.setText("RSSI: " + beacon.getRssi());
66 |
67 | switch (beacon.getProximity()) {
68 | case 0:
69 | holder.proximityView.setText("proximity: " + "unknow");
70 | break;
71 | case 1:
72 | holder.proximityView.setText("proximity: " + "immediate");
73 | break;
74 | case 2:
75 | holder.proximityView.setText("proximity: " + "near");
76 | break;
77 | case 3:
78 | holder.proximityView.setText("proximity: " + "far");
79 | break;
80 | default:
81 | break;
82 | }
83 | }
84 |
85 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
86 | if (view == null) {
87 | view = inflater.inflate(R.layout.device_item, null);
88 | view.setTag(new ViewHolder(view));
89 | }
90 | return view;
91 | }
92 |
93 | static class ViewHolder {
94 | final TextView macTextView;
95 | final TextView uuidTextView;
96 | final TextView majorTextView;
97 | final TextView minorTextView;
98 | final TextView measuredPowerTextView;
99 | final TextView rssiTextView;
100 | final TextView proximityView;
101 |
102 | ViewHolder(View view) {
103 | macTextView = (TextView) view.findViewWithTag("mac");
104 | uuidTextView = (TextView) view.findViewWithTag("uuid");
105 | majorTextView = (TextView) view.findViewWithTag("major");
106 | minorTextView = (TextView) view.findViewWithTag("minor");
107 | measuredPowerTextView = (TextView) view.findViewWithTag("mpower");
108 | rssiTextView = (TextView) view.findViewWithTag("rssi");
109 | proximityView = (TextView) view.findViewWithTag("proximity");
110 | }
111 | }
112 | }
113 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/ComparatorBeaconByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.util.Comparator;
4 |
5 | import com.aprilbrother.aprilbrothersdk.Beacon;
6 |
7 |
8 | public class ComparatorBeaconByRssi implements Comparator {
9 |
10 | @Override
11 | public int compare(Beacon lhs, Beacon rhs) {
12 |
13 | if(lhs.getRssi() == rhs.getRssi()){
14 | int flag=lhs.getProximityUUID().compareTo(rhs.getProximityUUID());
15 | if(flag==0){
16 | if(lhs.getMajor() == rhs.getMajor()){
17 | if(lhs.getMinor() == rhs.getMinor()){
18 | return 0;
19 | }else{
20 | return lhs.getMinor() - rhs.getMinor();
21 | }
22 | }else{
23 | return lhs.getMajor() - rhs.getMajor();
24 | }
25 | }else{
26 | return flag;
27 | }
28 | }else{
29 | return rhs.getRssi() - lhs.getRssi();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/ComparatorEddyStoneByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.util.Comparator;
4 |
5 | import com.aprilbrother.aprilbrothersdk.Beacon;
6 | import com.aprilbrother.aprilbrothersdk.EddyStone;
7 |
8 |
9 | public class ComparatorEddyStoneByRssi implements Comparator {
10 |
11 | @Override
12 | public int compare(EddyStone lhs, EddyStone rhs) {
13 | return rhs.getRssi() - lhs.getRssi();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/EddyStoneAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Collection;
5 |
6 | import android.content.Context;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.view.ViewGroup;
10 | import android.widget.BaseAdapter;
11 | import android.widget.TextView;
12 |
13 | import com.aprilbrother.aprilbrothersdk.EddyStone;
14 |
15 | public class EddyStoneAdapter extends BaseAdapter {
16 |
17 | private ArrayList eddyStones;
18 | private LayoutInflater inflater;
19 |
20 | public EddyStoneAdapter(Context context) {
21 | this.inflater = LayoutInflater.from(context);
22 | this.eddyStones = new ArrayList();
23 | }
24 |
25 | public void replaceWith(Collection newBeacons) {
26 | this.eddyStones.clear();
27 | this.eddyStones.addAll(newBeacons);
28 | notifyDataSetChanged();
29 | }
30 |
31 | @Override
32 | public int getCount() {
33 | return eddyStones.size();
34 | }
35 |
36 | @Override
37 | public EddyStone getItem(int position) {
38 | return eddyStones.get(position);
39 | }
40 |
41 | @Override
42 | public long getItemId(int position) {
43 | return position;
44 | }
45 |
46 | @Override
47 | public View getView(int position, View view, ViewGroup parent) {
48 | view = inflateIfRequired(view, position, parent);
49 | bind(getItem(position), view);
50 | return view;
51 | }
52 |
53 | private void bind(EddyStone eddyStone, View view) {
54 | ViewHolder holder = (ViewHolder) view.getTag();
55 | holder.name.setText(eddyStone.getName());
56 | holder.macTextView.setText(eddyStone.getMacAddress());
57 | if(eddyStone.getModel().equals("url")){
58 | holder.uuidTextView.setText("URL : "+eddyStone.getUrl());
59 | holder.modelTextView.setText("MODEL : "+"url");
60 | holder.minorTextView.setVisibility(View.GONE);
61 | }else if(eddyStone.getModel().equals("uid")){
62 | holder.uuidTextView.setText("UID : "+eddyStone.getUid());
63 | holder.modelTextView.setText("MODEL : "+"uid");
64 | holder.minorTextView.setVisibility(View.GONE);
65 | }else if(eddyStone.getModel().equals("iBeacon")){
66 | holder.uuidTextView.setText("UUID : "+eddyStone.getUuid());
67 | holder.modelTextView.setText("Major : "+eddyStone.getMajor());
68 | holder.minorTextView.setText("Minor : "+eddyStone.getMinor());
69 | holder.minorTextView.setVisibility(View.VISIBLE);
70 | }
71 | holder.rssiTextView.setText("RSSI : "+eddyStone.getRssi());
72 | }
73 |
74 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
75 | if (view == null) {
76 | view = inflater.inflate(R.layout.devices_list_item, null);
77 | view.setTag(new ViewHolder(view));
78 | }
79 | return view;
80 | }
81 |
82 | static class ViewHolder {
83 | final TextView name;
84 | final TextView macTextView;
85 | final TextView uuidTextView;
86 | final TextView modelTextView;
87 | final TextView rssiTextView;
88 | final TextView minorTextView;
89 |
90 | ViewHolder(View view) {
91 | name = (TextView) view.findViewWithTag("name");
92 | macTextView = (TextView) view.findViewWithTag("mac");
93 | uuidTextView = (TextView) view.findViewWithTag("uuid");
94 | modelTextView = (TextView) view.findViewWithTag("model");
95 | rssiTextView = (TextView) view.findViewWithTag("rssi");
96 | minorTextView = (TextView) view.findViewWithTag("minor");
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/EddyStoneScanActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Collections;
5 |
6 | import android.app.Activity;
7 | import android.content.Intent;
8 | import android.os.Bundle;
9 | import android.view.View;
10 | import android.view.View.OnClickListener;
11 | import android.widget.AdapterView;
12 | import android.widget.AdapterView.OnItemClickListener;
13 | import android.widget.Button;
14 | import android.widget.ListView;
15 |
16 | import com.aprilbrother.aprilbrothersdk.BeaconManager;
17 | import com.aprilbrother.aprilbrothersdk.BeaconManager.EddyStoneListener;
18 | import com.aprilbrother.aprilbrothersdk.EddyStone;
19 |
20 | public class EddyStoneScanActivity extends Activity {
21 | BeaconManager manager;
22 | EddyStoneAdapter adapter;
23 | private ArrayList eddyStones;
24 | private Button button;
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 | setContentView(R.layout.activity_eddystonescan);
30 | eddyStones = new ArrayList();
31 | initView();
32 | initScan();
33 | }
34 |
35 | private void initScan() {
36 | manager = new BeaconManager(this);
37 | manager.setEddyStoneListener(new EddyStoneListener() {
38 |
39 | @Override
40 | public void onEddyStoneDiscovered(EddyStone eddyStone) {
41 | refreshList(eddyStone);
42 | }
43 |
44 | private void refreshList(EddyStone eddyStone) {
45 | if (!eddyStones.contains(eddyStone)) {
46 | eddyStones.add(eddyStone);
47 | } else {
48 | eddyStones.remove(eddyStone);
49 | eddyStones.add(eddyStone);
50 | }
51 | ComparatorEddyStoneByRssi com = new ComparatorEddyStoneByRssi();
52 | Collections.sort(eddyStones, com);
53 | adapter.replaceWith(eddyStones);
54 | }
55 | });
56 | }
57 |
58 | private void initView() {
59 | ListView lv_eddystone = (ListView) findViewById(R.id.lv_eddystone);
60 | adapter = new EddyStoneAdapter(this);
61 | lv_eddystone.setAdapter(adapter);
62 | lv_eddystone.setOnItemClickListener(new OnItemClickListener() {
63 |
64 | @Override
65 | public void onItemClick(AdapterView> parent, View view,
66 | int position, long id) {
67 | Intent intent = new Intent(EddyStoneScanActivity.this,EddyStoneModifyActivity.class);
68 | intent.putExtra("eddystone", eddyStones.get(position));
69 | startActivity(intent);
70 | }
71 | });
72 | button = (Button) findViewById(R.id.button);
73 | button.setOnClickListener(new OnClickListener() {
74 |
75 | @Override
76 | public void onClick(View v) {
77 | if(button.getText().toString().equals("stopScan")){
78 | button.setText("startScan");
79 | manager.stopEddyStoneScan();
80 | }else{
81 | button.setText("stopScan");
82 | manager.startEddyStoneScan();
83 | }
84 | }
85 | });
86 | }
87 |
88 | @Override
89 | protected void onStart() {
90 | if(button.getText().toString().equals("startScan")){
91 | manager.startEddyStoneScan();
92 | button.setText("stopScan");
93 | }
94 |
95 | super.onStart();
96 | }
97 |
98 | @Override
99 | protected void onStop() {
100 | if(button.getText().toString().equals("stopScan")){
101 | manager.stopEddyStoneScan();
102 | button.setText("startScan");
103 | }
104 | super.onStop();
105 | }
106 |
107 | @Override
108 | protected void onDestroy() {
109 | super.onDestroy();
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/NotificationUtils.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.NotificationManager;
4 | import android.app.PendingIntent;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.support.v4.app.NotificationCompat;
8 |
9 | public class NotificationUtils {
10 |
11 | public static void generateNotification(Context context, String message, String title) {
12 | Intent launchIntent = new Intent(context, NotifyInContentActivity.class)
13 | .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
14 | | Intent.FLAG_ACTIVITY_SINGLE_TOP);
15 | ((NotificationManager) context
16 | .getSystemService(Context.NOTIFICATION_SERVICE)).notify(
17 | 0,
18 | new NotificationCompat.Builder(context)
19 | .setWhen(System.currentTimeMillis())
20 | .setSmallIcon(R.drawable.ic_launcher)
21 | .setTicker(message)
22 | .setContentTitle(title)
23 | .setContentText(message)
24 | .setContentIntent(
25 | PendingIntent.getActivity(context, 0,
26 | launchIntent, 0)).setAutoCancel(true)
27 | .build());
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/NotifyInContentActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.view.animation.AlphaAnimation;
8 | import android.widget.ImageView;
9 | import android.widget.LinearLayout;
10 |
11 | public class NotifyInContentActivity extends Activity {
12 | @Override
13 | protected void onCreate(Bundle savedInstanceState) {
14 | setContentView(R.layout.activity_notify_in_content);
15 | super.onCreate(savedInstanceState);
16 | init();
17 | }
18 |
19 | private void init() {
20 | setClickFinish();
21 | setAnimtionStart();
22 | }
23 |
24 | private void setAnimtionStart() {
25 | ImageView iv = (ImageView) findViewById(R.id.iv_notify_content_in);
26 | AlphaAnimation alphaAnimation = new AlphaAnimation(0.1f, 1.0f);
27 | alphaAnimation.setDuration(3000);
28 | iv.startAnimation(alphaAnimation);
29 | }
30 |
31 | private void setClickFinish() {
32 | LinearLayout ll_notify_content = (LinearLayout) findViewById(R.id.ll_notify_content);
33 | ll_notify_content.setOnClickListener(new OnClickListener() {
34 |
35 | @Override
36 | public void onClick(View v) {
37 | NotifyInContentActivity.this.finish();
38 | }
39 | });
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/NotifyOutContentActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.widget.LinearLayout;
8 |
9 | public class NotifyOutContentActivity extends Activity {
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | setContentView(R.layout.activity_notify_out_content);
13 | super.onCreate(savedInstanceState);
14 | LinearLayout ll_notify_content = (LinearLayout) findViewById(R.id.ll_notify_content);
15 | ll_notify_content.setOnClickListener(new OnClickListener() {
16 |
17 | @Override
18 | public void onClick(View v) {
19 | NotifyOutContentActivity.this.finish();
20 | }
21 | });
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/RequestActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.widget.TextView;
6 |
7 | public class RequestActivity extends Activity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | setContentView(R.layout.activity_request);
11 | super.onCreate(savedInstanceState);
12 | init();
13 | }
14 |
15 | private void init() {
16 | String string = getIntent().getExtras().getString("string");
17 |
18 | TextView tv = (TextView) findViewById(R.id.tv_request);
19 |
20 | tv.setText(string);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/ResultActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.Activity;
4 |
5 | /**
6 | * User: stevealbright
7 | * Time: 9/10/13 @ 9:34 PM
8 | */
9 | public class ResultActivity extends Activity {
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/SensorActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import android.app.Activity;
4 | import android.app.ProgressDialog;
5 | import android.os.Bundle;
6 | import android.os.Handler;
7 | import android.util.Log;
8 | import android.view.View;
9 | import android.view.View.OnClickListener;
10 | import android.widget.Button;
11 | import android.widget.TextView;
12 | import android.widget.Toast;
13 |
14 | import com.aprilbrother.aprilbrothersdk.Beacon;
15 | import com.aprilbrother.aprilbrothersdk.connection.AprilBeaconConnection;
16 | import com.aprilbrother.aprilbrothersdk.connection.AprilBeaconConnection.MyWriteCallback;
17 | import com.aprilbrother.aprilbrothersdk.internal.ABAcceleration;
18 |
19 | public class SensorActivity extends Activity implements OnClickListener {
20 |
21 | protected static final String TAG = "SensorActivity";
22 |
23 | private Button btn_conn, btn_on, btn_off, btn_notify, btn_on_l, btn_off_l,
24 | btn_notify_l;
25 |
26 | private TextView tv_ac_x, tv_ac_y, tv_ac_z, tv_light,tv_conn_status;
27 |
28 | private AprilBeaconConnection conn;
29 |
30 | private Beacon beacon;
31 |
32 | private ProgressDialog proDialog;
33 |
34 | private Handler handler;
35 |
36 | @Override
37 | protected void onCreate(Bundle savedInstanceState) {
38 | super.onCreate(savedInstanceState);
39 | setContentView(R.layout.activity_sensor);
40 | handler = new Handler();
41 | Bundle bundle = getIntent().getExtras();
42 | beacon = bundle.getParcelable("beacon");
43 | conn = new AprilBeaconConnection(this, beacon);
44 | initView();
45 | }
46 |
47 | private void initView() {
48 | btn_on = (Button) findViewById(R.id.bt_turn_on);
49 | btn_on_l = (Button) findViewById(R.id.bt_turn_on_l);
50 | btn_off = (Button) findViewById(R.id.bt_turn_off);
51 | btn_off_l = (Button) findViewById(R.id.bt_turn_off_l);
52 | btn_notify = (Button) findViewById(R.id.bt_notify);
53 | btn_notify_l = (Button) findViewById(R.id.bt_notify_l);
54 | tv_ac_x = (TextView) findViewById(R.id.tv_ac_x);
55 | tv_ac_y = (TextView) findViewById(R.id.tv_ac_y);
56 | tv_ac_z = (TextView) findViewById(R.id.tv_ac_z);
57 | tv_light = (TextView) findViewById(R.id.tv_light);
58 | tv_conn_status = (TextView) findViewById(R.id.tv_conn_status);
59 |
60 |
61 | btn_on.setOnClickListener(this);
62 | btn_on_l.setOnClickListener(this);
63 | btn_off.setOnClickListener(this);
64 | btn_off_l.setOnClickListener(this);
65 | btn_notify.setOnClickListener(this);
66 | btn_notify_l.setOnClickListener(this);
67 |
68 | btn_conn = (Button) findViewById(R.id.bt_conn);
69 | btn_conn.setOnClickListener(this);
70 | }
71 |
72 | @Override
73 | public void onClick(View v) {
74 | switch (v.getId()) {
75 | case R.id.bt_turn_on:
76 | conn.turnOnCalu();
77 | break;
78 | case R.id.bt_turn_off:
79 | conn.turnOffCalu();
80 | break;
81 | case R.id.bt_notify:
82 | conn.enableACNotification();
83 | break;
84 | case R.id.bt_turn_on_l:
85 | conn.turnOnLight();
86 | break;
87 | case R.id.bt_turn_off_l:
88 | conn.turnOffLight();
89 | break;
90 | case R.id.bt_notify_l:
91 | conn.enableLightNotification();
92 | break;
93 | case R.id.bt_conn:
94 | proDialog = android.app.ProgressDialog.show(SensorActivity.this,
95 | "Connecting", "Please wait for connect device");
96 |
97 | conn.connectGattToWrite(new MyWriteCallback() {
98 | @Override
99 | public void notifyABAcceleration(ABAcceleration abAcceleration) {
100 | Log.i(TAG, "-----------------");
101 | Log.i(TAG, " x = " + abAcceleration.getX());
102 | Log.i(TAG, " y = " + abAcceleration.getY());
103 | Log.i(TAG, " z = " + abAcceleration.getZ());
104 |
105 | tv_ac_x.setText(abAcceleration.getX() + "");
106 | tv_ac_y.setText(abAcceleration.getY() + "");
107 | tv_ac_z.setText(abAcceleration.getZ() + "");
108 | super.notifyABAcceleration(abAcceleration);
109 | }
110 |
111 | @Override
112 | public void notifyABLight(double light) {
113 | Log.i(TAG, "light = " + light);
114 | tv_light.setText(light + "");
115 | super.notifyABLight(light);
116 | }
117 |
118 | @Override
119 | public void connected() {
120 | Toast.makeText(SensorActivity.this, "have connect", 0)
121 | .show();
122 | if (proDialog != null && proDialog.isShowing()) {
123 | proDialog.dismiss();
124 | }
125 | tv_conn_status.setText("Connected");
126 | super.connected();
127 | }
128 |
129 | }, null);
130 |
131 | handler.postDelayed(new Runnable() {
132 |
133 | @Override
134 | public void run() {
135 |
136 | if (proDialog != null && proDialog.isShowing()){
137 | Toast.makeText(SensorActivity.this, "have not connect,please click the device buonnt s1 and try again", 0).show();
138 | proDialog.dismiss();
139 | if (conn != null) {
140 | conn.close();
141 | }
142 | tv_conn_status.setText("disConnect");
143 | }
144 | }
145 | }, 10000);
146 | break;
147 | default:
148 | break;
149 | }
150 | }
151 |
152 | @Override
153 | protected void onStop() {
154 | conn.close();
155 | super.onStop();
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/AprilBeaconDemos/src/com/aprilbrother/aprilbeacondemo/ServiceStatusUtils.java:
--------------------------------------------------------------------------------
1 | package com.aprilbrother.aprilbeacondemo;
2 |
3 | import java.util.List;
4 |
5 | import android.app.ActivityManager;
6 | import android.app.ActivityManager.RunningServiceInfo;
7 | import android.content.Context;
8 |
9 | public class ServiceStatusUtils {
10 |
11 | public static boolean isServiceRunning(Context context,String serviename){
12 | ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
13 | List infos = am.getRunningServices(100);
14 | for(RunningServiceInfo info :infos){
15 | String classname = info.service.getClassName();
16 | if(serviename.equals(classname)){
17 | return true;
18 | }
19 | }
20 | return false;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | Android > Lint > Correctness
39 |
40 |
41 | Android > Lint > Performance
42 |
43 |
44 | Android > Lint > Usability > Icons
45 |
46 |
47 | Bitwise operation issuesJava
48 |
49 |
50 | Control flow issuesJava
51 |
52 |
53 | Error handlingJava
54 |
55 |
56 | Groovy
57 |
58 |
59 | Java
60 |
61 |
62 | Numeric issuesJava
63 |
64 |
65 | Performance issuesJava
66 |
67 |
68 | Potentially confusing code constructsGroovy
69 |
70 |
71 | Threading issuesGroovy
72 |
73 |
74 | Threading issuesJava
75 |
76 |
77 |
78 |
79 | Android
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 | 1.8
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | aaptOptions.cruncherEnabled = false
5 | aaptOptions.useNewCruncher = false
6 | compileSdkVersion 25
7 | buildToolsVersion "25.0.2"
8 | defaultConfig {
9 | applicationId "com.aprbrother.aprilbeacondemos"
10 | minSdkVersion 18
11 | targetSdkVersion 22
12 | versionCode 1
13 | versionName "1.0"
14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15 | }
16 | buildTypes {
17 | release {
18 | minifyEnabled false
19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20 | }
21 | }
22 | }
23 |
24 | dependencies {
25 | compile fileTree(include: ['*.jar'], dir: 'libs')
26 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
27 | exclude group: 'com.android.support', module: 'support-annotations'
28 | })
29 | compile 'com.android.support:appcompat-v7:25.2.0'
30 | compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
31 | testCompile 'junit:junit:4.12'
32 | compile files('libs/ab-sdk-beta1.7.3.jar')
33 | }
34 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/libs/ab-sdk-beta1.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/libs/ab-sdk-beta1.7.3.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in E:\sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/androidTest/java/com/aprbrother/aprilbeacondemos/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.aprbrother.aprilbeacondemos", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
19 |
20 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
46 |
47 |
50 |
53 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/BeaconAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.TextView;
9 |
10 | import com.aprbrother.aprilbeacondemo.R;
11 | import com.aprilbrother.aprilbrothersdk.Beacon;
12 |
13 | import java.util.ArrayList;
14 | import java.util.Collection;
15 |
16 | public class BeaconAdapter extends BaseAdapter {
17 |
18 | private ArrayList beacons;
19 | private LayoutInflater inflater;
20 |
21 | public BeaconAdapter(Context context) {
22 | this.inflater = LayoutInflater.from(context);
23 | this.beacons = new ArrayList();
24 | }
25 |
26 | public void replaceWith(Collection newBeacons) {
27 | this.beacons.clear();
28 | this.beacons.addAll(newBeacons);
29 | notifyDataSetChanged();
30 | }
31 |
32 | @Override
33 | public int getCount() {
34 | return beacons.size();
35 | }
36 |
37 | @Override
38 | public Beacon getItem(int position) {
39 | return beacons.get(position);
40 | }
41 |
42 | @Override
43 | public long getItemId(int position) {
44 | return position;
45 | }
46 |
47 | @Override
48 | public View getView(int position, View view, ViewGroup parent) {
49 | view = inflateIfRequired(view, position, parent);
50 | bind(getItem(position), view);
51 | return view;
52 | }
53 |
54 | private void bind(Beacon beacon, View view) {
55 | ViewHolder holder = (ViewHolder) view.getTag();
56 | holder.macTextView.setText("MAC : " + beacon.getMacAddress() + "("
57 | + beacon.getDistance() + "m)");
58 | holder.uuidTextView.setText("UUID: " + beacon.getProximityUUID());
59 | holder.majorTextView.setText("Major: " + beacon.getMajor());
60 | holder.minorTextView.setText("Minor: " + beacon.getMinor());
61 | holder.measuredPowerTextView.setText("MPower: "
62 | + beacon.getMeasuredPower());
63 | holder.rssiTextView.setText("RSSI: " + beacon.getRssi());
64 |
65 | switch (beacon.getProximity()) {
66 | case 0:
67 | holder.proximityView.setText("proximity: " + "unknow");
68 | break;
69 | case 1:
70 | holder.proximityView.setText("proximity: " + "immediate");
71 | break;
72 | case 2:
73 | holder.proximityView.setText("proximity: " + "near");
74 | break;
75 | case 3:
76 | holder.proximityView.setText("proximity: " + "far");
77 | break;
78 | default:
79 | break;
80 | }
81 | }
82 |
83 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
84 | if (view == null) {
85 | view = inflater.inflate(R.layout.device_item, null);
86 | view.setTag(new ViewHolder(view));
87 | }
88 | return view;
89 | }
90 |
91 | static class ViewHolder {
92 | final TextView macTextView;
93 | final TextView uuidTextView;
94 | final TextView majorTextView;
95 | final TextView minorTextView;
96 | final TextView measuredPowerTextView;
97 | final TextView rssiTextView;
98 | final TextView proximityView;
99 |
100 | ViewHolder(View view) {
101 | macTextView = (TextView) view.findViewWithTag("mac");
102 | uuidTextView = (TextView) view.findViewWithTag("uuid");
103 | majorTextView = (TextView) view.findViewWithTag("major");
104 | minorTextView = (TextView) view.findViewWithTag("minor");
105 | measuredPowerTextView = (TextView) view.findViewWithTag("mpower");
106 | rssiTextView = (TextView) view.findViewWithTag("rssi");
107 | proximityView = (TextView) view.findViewWithTag("proximity");
108 | }
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/ComparatorBeaconByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import com.aprilbrother.aprilbrothersdk.Beacon;
4 |
5 | import java.util.Comparator;
6 |
7 |
8 | public class ComparatorBeaconByRssi implements Comparator {
9 |
10 | @Override
11 | public int compare(Beacon lhs, Beacon rhs) {
12 |
13 | if(lhs.getRssi() == rhs.getRssi()){
14 | int flag=lhs.getProximityUUID().compareTo(rhs.getProximityUUID());
15 | if(flag==0){
16 | if(lhs.getMajor() == rhs.getMajor()){
17 | if(lhs.getMinor() == rhs.getMinor()){
18 | return 0;
19 | }else{
20 | return lhs.getMinor() - rhs.getMinor();
21 | }
22 | }else{
23 | return lhs.getMajor() - rhs.getMajor();
24 | }
25 | }else{
26 | return flag;
27 | }
28 | }else{
29 | return rhs.getRssi() - lhs.getRssi();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/ComparatorEddyStoneByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import com.aprilbrother.aprilbrothersdk.EddyStone;
4 |
5 | import java.util.Comparator;
6 |
7 |
8 | public class ComparatorEddyStoneByRssi implements Comparator {
9 |
10 | @Override
11 | public int compare(EddyStone lhs, EddyStone rhs) {
12 | return rhs.getRssi() - lhs.getRssi();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/EddyStoneAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.TextView;
9 |
10 | import com.aprbrother.aprilbeacondemo.R;
11 | import com.aprilbrother.aprilbrothersdk.EddyStone;
12 |
13 | import java.util.ArrayList;
14 | import java.util.Collection;
15 |
16 | public class EddyStoneAdapter extends BaseAdapter {
17 |
18 | private ArrayList eddyStones;
19 | private LayoutInflater inflater;
20 |
21 | public EddyStoneAdapter(Context context) {
22 | this.inflater = LayoutInflater.from(context);
23 | this.eddyStones = new ArrayList();
24 | }
25 |
26 | public void replaceWith(Collection newBeacons) {
27 | this.eddyStones.clear();
28 | this.eddyStones.addAll(newBeacons);
29 | notifyDataSetChanged();
30 | }
31 |
32 | @Override
33 | public int getCount() {
34 | return eddyStones.size();
35 | }
36 |
37 | @Override
38 | public EddyStone getItem(int position) {
39 | return eddyStones.get(position);
40 | }
41 |
42 | @Override
43 | public long getItemId(int position) {
44 | return position;
45 | }
46 |
47 | @Override
48 | public View getView(int position, View view, ViewGroup parent) {
49 | view = inflateIfRequired(view, position, parent);
50 | bind(getItem(position), view);
51 | return view;
52 | }
53 |
54 | private void bind(EddyStone eddyStone, View view) {
55 | ViewHolder holder = (ViewHolder) view.getTag();
56 | holder.name.setText(eddyStone.getName());
57 | holder.macTextView.setText(eddyStone.getMacAddress());
58 | if(eddyStone.getModel().equals("url")){
59 | holder.uuidTextView.setText("URL : "+eddyStone.getUrl());
60 | holder.modelTextView.setText("MODEL : "+"url");
61 | holder.minorTextView.setVisibility(View.GONE);
62 | }else if(eddyStone.getModel().equals("uid")){
63 | holder.uuidTextView.setText("UID : "+eddyStone.getUid());
64 | holder.modelTextView.setText("MODEL : "+"uid");
65 | holder.minorTextView.setVisibility(View.GONE);
66 | }else if(eddyStone.getModel().equals("iBeacon")){
67 | holder.uuidTextView.setText("UUID : "+eddyStone.getUuid());
68 | holder.modelTextView.setText("Major : "+eddyStone.getMajor());
69 | holder.minorTextView.setText("Minor : "+eddyStone.getMinor());
70 | holder.minorTextView.setVisibility(View.VISIBLE);
71 | }
72 | holder.rssiTextView.setText("RSSI : "+eddyStone.getRssi());
73 | }
74 |
75 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
76 | if (view == null) {
77 | view = inflater.inflate(R.layout.devices_list_item, null);
78 | view.setTag(new ViewHolder(view));
79 | }
80 | return view;
81 | }
82 |
83 | static class ViewHolder {
84 | final TextView name;
85 | final TextView macTextView;
86 | final TextView uuidTextView;
87 | final TextView modelTextView;
88 | final TextView rssiTextView;
89 | final TextView minorTextView;
90 |
91 | ViewHolder(View view) {
92 | name = (TextView) view.findViewWithTag("name");
93 | macTextView = (TextView) view.findViewWithTag("mac");
94 | uuidTextView = (TextView) view.findViewWithTag("uuid");
95 | modelTextView = (TextView) view.findViewWithTag("model");
96 | rssiTextView = (TextView) view.findViewWithTag("rssi");
97 | minorTextView = (TextView) view.findViewWithTag("minor");
98 | }
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/EddyStoneScanActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.os.Bundle;
6 | import android.view.View;
7 | import android.widget.AdapterView;
8 | import android.widget.AdapterView.OnItemClickListener;
9 | import android.widget.Button;
10 | import android.widget.ListView;
11 |
12 | import com.aprbrother.aprilbeacondemo.R;
13 | import com.aprilbrother.aprilbrothersdk.BeaconManager;
14 | import com.aprilbrother.aprilbrothersdk.BeaconManager.EddyStoneListener;
15 | import com.aprilbrother.aprilbrothersdk.EddyStone;
16 |
17 | import java.util.ArrayList;
18 | import java.util.Collections;
19 |
20 | public class EddyStoneScanActivity extends Activity {
21 | BeaconManager manager;
22 | EddyStoneAdapter adapter;
23 | private ArrayList eddyStones;
24 | private Button button;
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 | setContentView(R.layout.activity_eddystonescan);
29 | eddyStones = new ArrayList();
30 | initView();
31 | initScan();
32 | }
33 |
34 | private void initScan() {
35 | manager = new BeaconManager(this);
36 | manager.setEddyStoneListener(new EddyStoneListener() {
37 |
38 | @Override
39 | public void onEddyStoneDiscovered(EddyStone eddyStone) {
40 | refreshList(eddyStone);
41 | }
42 |
43 | private void refreshList(EddyStone eddyStone) {
44 | if (!eddyStones.contains(eddyStone)) {
45 | eddyStones.add(eddyStone);
46 | } else {
47 | eddyStones.remove(eddyStone);
48 | eddyStones.add(eddyStone);
49 | }
50 | ComparatorEddyStoneByRssi com = new ComparatorEddyStoneByRssi();
51 | Collections.sort(eddyStones, com);
52 | adapter.replaceWith(eddyStones);
53 | }
54 | });
55 | }
56 |
57 | private void initView() {
58 | ListView lv_eddystone = (ListView) findViewById(R.id.lv_eddystone);
59 | adapter = new EddyStoneAdapter(this);
60 | lv_eddystone.setAdapter(adapter);
61 | lv_eddystone.setOnItemClickListener(new OnItemClickListener() {
62 |
63 | @Override
64 | public void onItemClick(AdapterView> parent, View view,
65 | int position, long id) {
66 | Intent intent = new Intent(EddyStoneScanActivity.this,EddyStoneModifyActivity.class);
67 | intent.putExtra("eddystone", eddyStones.get(position));
68 | startActivity(intent);
69 | }
70 | });
71 | button = (Button) findViewById(R.id.button);
72 | button.setOnClickListener(new View.OnClickListener() {
73 |
74 | @Override
75 | public void onClick(View v) {
76 | if(button.getText().toString().equals("stopScan")){
77 | button.setText("startScan");
78 | manager.stopEddyStoneScan();
79 | }else{
80 | button.setText("stopScan");
81 | manager.startEddyStoneScan();
82 | }
83 | }
84 | });
85 | }
86 |
87 | @Override
88 | protected void onStart() {
89 | if(button.getText().toString().equals("startScan")){
90 | manager.startEddyStoneScan();
91 | button.setText("stopScan");
92 | }
93 |
94 | super.onStart();
95 | }
96 |
97 | @Override
98 | protected void onStop() {
99 | if(button.getText().toString().equals("stopScan")){
100 | manager.stopEddyStoneScan();
101 | button.setText("startScan");
102 | }
103 | super.onStop();
104 | }
105 |
106 |
107 | @Override
108 | protected void onDestroy() {
109 | super.onDestroy();
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 |
6 | import com.aprbrother.aprilbeacondemo.R;
7 |
8 |
9 | public class MainActivity extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_main);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/NotificationUtils.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.NotificationManager;
4 | import android.app.PendingIntent;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.support.v4.app.NotificationCompat;
8 |
9 | import com.aprbrother.aprilbeacondemo.R;
10 |
11 | public class NotificationUtils {
12 |
13 | public static void generateNotification(Context context, String message, String title) {
14 | Intent launchIntent = new Intent(context, NotifyInContentActivity.class)
15 | .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
16 | | Intent.FLAG_ACTIVITY_SINGLE_TOP);
17 | ((NotificationManager) context
18 | .getSystemService(Context.NOTIFICATION_SERVICE)).notify(
19 | 0,
20 | new NotificationCompat.Builder(context)
21 | .setWhen(System.currentTimeMillis())
22 | .setSmallIcon(R.drawable.ic_launcher)
23 | .setTicker(message)
24 | .setContentTitle(title)
25 | .setContentText(message)
26 | .setContentIntent(
27 | PendingIntent.getActivity(context, 0,
28 | launchIntent, 0)).setAutoCancel(true)
29 | .build());
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/NotifyInContentActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.view.animation.AlphaAnimation;
8 | import android.widget.ImageView;
9 | import android.widget.LinearLayout;
10 |
11 | import com.aprbrother.aprilbeacondemo.R;
12 |
13 | public class NotifyInContentActivity extends Activity {
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | setContentView(R.layout.activity_notify_in_content);
17 | super.onCreate(savedInstanceState);
18 | init();
19 | }
20 |
21 | private void init() {
22 | setClickFinish();
23 | setAnimtionStart();
24 | }
25 |
26 | private void setAnimtionStart() {
27 | ImageView iv = (ImageView) findViewById(R.id.iv_notify_content_in);
28 | AlphaAnimation alphaAnimation = new AlphaAnimation(0.1f, 1.0f);
29 | alphaAnimation.setDuration(3000);
30 | iv.startAnimation(alphaAnimation);
31 | }
32 |
33 | private void setClickFinish() {
34 | LinearLayout ll_notify_content = (LinearLayout) findViewById(R.id.ll_notify_content);
35 | ll_notify_content.setOnClickListener(new OnClickListener() {
36 |
37 | @Override
38 | public void onClick(View v) {
39 | NotifyInContentActivity.this.finish();
40 | }
41 | });
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/NotifyOutContentActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.widget.LinearLayout;
8 |
9 | import com.aprbrother.aprilbeacondemo.R;
10 |
11 | public class NotifyOutContentActivity extends Activity {
12 | @Override
13 | protected void onCreate(Bundle savedInstanceState) {
14 | setContentView(R.layout.activity_notify_out_content);
15 | super.onCreate(savedInstanceState);
16 | LinearLayout ll_notify_content = (LinearLayout) findViewById(R.id.ll_notify_content);
17 | ll_notify_content.setOnClickListener(new OnClickListener() {
18 |
19 | @Override
20 | public void onClick(View v) {
21 | NotifyOutContentActivity.this.finish();
22 | }
23 | });
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/RequestActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.widget.TextView;
6 |
7 | import com.aprbrother.aprilbeacondemo.R;
8 |
9 | public class RequestActivity extends Activity {
10 | @Override
11 | protected void onCreate(Bundle savedInstanceState) {
12 | setContentView(R.layout.activity_request);
13 | super.onCreate(savedInstanceState);
14 | init();
15 | }
16 |
17 | private void init() {
18 | String string = getIntent().getExtras().getString("string");
19 |
20 | TextView tv = (TextView) findViewById(R.id.tv_request);
21 |
22 | tv.setText(string);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/ResultActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 |
5 | /**
6 | * User: stevealbright
7 | * Time: 9/10/13 @ 9:34 PM
8 | */
9 | public class ResultActivity extends Activity {
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/SensorActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.Activity;
4 | import android.app.ProgressDialog;
5 | import android.os.Bundle;
6 | import android.os.Handler;
7 | import android.util.Log;
8 | import android.view.View;
9 | import android.view.View.OnClickListener;
10 | import android.widget.Button;
11 | import android.widget.TextView;
12 | import android.widget.Toast;
13 |
14 | import com.aprbrother.aprilbeacondemo.R;
15 | import com.aprilbrother.aprilbrothersdk.Beacon;
16 | import com.aprilbrother.aprilbrothersdk.connection.AprilBeaconConnection;
17 | import com.aprilbrother.aprilbrothersdk.connection.AprilBeaconConnection.MyWriteCallback;
18 | import com.aprilbrother.aprilbrothersdk.internal.ABAcceleration;
19 |
20 | public class SensorActivity extends Activity implements OnClickListener {
21 |
22 | protected static final String TAG = "SensorActivity";
23 |
24 | private Button btn_conn, btn_on, btn_off, btn_notify, btn_on_l, btn_off_l,
25 | btn_notify_l;
26 |
27 | private TextView tv_ac_x, tv_ac_y, tv_ac_z, tv_light,tv_conn_status;
28 |
29 | private AprilBeaconConnection conn;
30 |
31 | private Beacon beacon;
32 |
33 | private ProgressDialog proDialog;
34 |
35 | private Handler handler;
36 |
37 | @Override
38 | protected void onCreate(Bundle savedInstanceState) {
39 | super.onCreate(savedInstanceState);
40 | setContentView(R.layout.activity_sensor);
41 | handler = new Handler();
42 | Bundle bundle = getIntent().getExtras();
43 | beacon = bundle.getParcelable("beacon");
44 | conn = new AprilBeaconConnection(this, beacon);
45 | initView();
46 | }
47 |
48 | private void initView() {
49 | btn_on = (Button) findViewById(R.id.bt_turn_on);
50 | btn_on_l = (Button) findViewById(R.id.bt_turn_on_l);
51 | btn_off = (Button) findViewById(R.id.bt_turn_off);
52 | btn_off_l = (Button) findViewById(R.id.bt_turn_off_l);
53 | btn_notify = (Button) findViewById(R.id.bt_notify);
54 | btn_notify_l = (Button) findViewById(R.id.bt_notify_l);
55 | tv_ac_x = (TextView) findViewById(R.id.tv_ac_x);
56 | tv_ac_y = (TextView) findViewById(R.id.tv_ac_y);
57 | tv_ac_z = (TextView) findViewById(R.id.tv_ac_z);
58 | tv_light = (TextView) findViewById(R.id.tv_light);
59 | tv_conn_status = (TextView) findViewById(R.id.tv_conn_status);
60 |
61 |
62 | btn_on.setOnClickListener(this);
63 | btn_on_l.setOnClickListener(this);
64 | btn_off.setOnClickListener(this);
65 | btn_off_l.setOnClickListener(this);
66 | btn_notify.setOnClickListener(this);
67 | btn_notify_l.setOnClickListener(this);
68 |
69 | btn_conn = (Button) findViewById(R.id.bt_conn);
70 | btn_conn.setOnClickListener(this);
71 | }
72 |
73 | @Override
74 | public void onClick(View v) {
75 | switch (v.getId()) {
76 | case R.id.bt_turn_on:
77 | conn.turnOnCalu();
78 | break;
79 | case R.id.bt_turn_off:
80 | conn.turnOffCalu();
81 | break;
82 | case R.id.bt_notify:
83 | conn.enableACNotification();
84 | break;
85 | case R.id.bt_turn_on_l:
86 | conn.turnOnLight();
87 | break;
88 | case R.id.bt_turn_off_l:
89 | conn.turnOffLight();
90 | break;
91 | case R.id.bt_notify_l:
92 | conn.enableLightNotification();
93 | break;
94 | case R.id.bt_conn:
95 | proDialog = ProgressDialog.show(SensorActivity.this,
96 | "Connecting", "Please wait for connect device");
97 |
98 | conn.connectGattToWrite(new MyWriteCallback() {
99 | @Override
100 | public void notifyABAcceleration(ABAcceleration abAcceleration) {
101 | Log.i(TAG, "-----------------");
102 | Log.i(TAG, " x = " + abAcceleration.getX());
103 | Log.i(TAG, " y = " + abAcceleration.getY());
104 | Log.i(TAG, " z = " + abAcceleration.getZ());
105 |
106 | tv_ac_x.setText(abAcceleration.getX() + "");
107 | tv_ac_y.setText(abAcceleration.getY() + "");
108 | tv_ac_z.setText(abAcceleration.getZ() + "");
109 | super.notifyABAcceleration(abAcceleration);
110 | }
111 |
112 | @Override
113 | public void notifyABLight(double light) {
114 | Log.i(TAG, "light = " + light);
115 | tv_light.setText(light + "");
116 | super.notifyABLight(light);
117 | }
118 |
119 | @Override
120 | public void connected() {
121 | Toast.makeText(SensorActivity.this, "have connect", 0)
122 | .show();
123 | if (proDialog != null && proDialog.isShowing()) {
124 | proDialog.dismiss();
125 | }
126 | tv_conn_status.setText("Connected");
127 | super.connected();
128 | }
129 |
130 | }, null);
131 |
132 | handler.postDelayed(new Runnable() {
133 |
134 | @Override
135 | public void run() {
136 |
137 | if (proDialog != null && proDialog.isShowing()){
138 | Toast.makeText(SensorActivity.this, "have not connect,please click the device buonnt s1 and try again", 0).show();
139 | proDialog.dismiss();
140 | if (conn != null) {
141 | conn.close();
142 | }
143 | tv_conn_status.setText("disConnect");
144 | }
145 | }
146 | }, 10000);
147 | break;
148 | default:
149 | break;
150 | }
151 | }
152 |
153 | @Override
154 | protected void onStop() {
155 | conn.close();
156 | super.onStop();
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/java/com/aprbrother/aprilbeacondemos/ServiceStatusUtils.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import android.app.ActivityManager;
4 | import android.app.ActivityManager.RunningServiceInfo;
5 | import android.content.Context;
6 |
7 | import java.util.List;
8 |
9 | public class ServiceStatusUtils {
10 |
11 | public static boolean isServiceRunning(Context context,String serviename){
12 | ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
13 | List infos = am.getRunningServices(100);
14 | for(RunningServiceInfo info :infos){
15 | String classname = info.service.getClassName();
16 | if(serviename.equals(classname)){
17 | return true;
18 | }
19 | }
20 | return false;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/aprilbeacon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/aprilbeacon.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/beacon_gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/beacon_gray.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/codeversed_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/codeversed_logo.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/logowithname.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/logowithname.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/notifyout.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-hdpi/notifyout.jpg
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/activity_eddystonescan.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
17 |
18 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
19 |
20 |
27 |
28 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/activity_notify_in_content.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/activity_notify_out_content.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
12 |
13 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/activity_request.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/device_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
24 |
25 |
29 |
30 |
34 |
35 |
39 |
40 |
44 |
45 |
46 |
50 |
51 |
55 |
56 |
60 |
61 |
62 |
66 |
67 |
71 |
72 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/devices_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
13 |
20 |
21 |
26 |
27 |
32 |
33 |
34 |
41 |
42 |
47 |
48 |
49 |
57 |
58 |
63 |
64 |
70 |
71 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/dialog_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/layout/notification_custom_remote.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
19 |
20 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-en/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 |
8 | Modify Beacon
9 | Start Modify
10 | Get Device Information
11 | Battery:
12 | Get Battery
13 | Power:
14 | Get Power
15 | Advinterval:
16 | Get Advinterval
17 | Firmware:
18 | Get Firmware
19 | Manufacturer:
20 | Get Manufacturer
21 | Start Background Notify
22 |
23 | Input Password
24 | Cancel
25 | Sure
26 |
27 | Codeversed Logo
28 | Normal
29 | Big Text Style
30 | Big Picture Style
31 | Inbox Style
32 | Custom View
33 |
34 | change model to URL
35 | current model:
36 | change model to UID
37 | change model to iBeacon
38 | change model to iBeacon_UID_URL
39 | change ULR
40 | change UID
41 | change uid_name_space
42 | change uid_custom
43 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values-zh/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 | 修改beacon参数
8 | 开始修改
9 | 获取设备信息
10 | 电量:
11 | 获取电量
12 | 发射功率:
13 | 获取发射功率
14 | 广播频率:
15 | 获取广播频率
16 | 固件版本:
17 | 获取固件版本
18 | 制造商:
19 | 获取制造商
20 | 开启后台通知
21 |
22 | 输入密码
23 | 取消
24 | 确定
25 |
26 | 更改模式为ULR
27 | 当前模式:
28 | 更改模式为UID
29 | 更改模式为iBeacon
30 | 更改模式为iBeacon_UID_URL
31 | 更改ULR
32 | 更改UID
33 | 更改uid_name_space
34 | 更改uid_custom
35 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AprilBeaconDemo
5 | Settings
6 | Hello world!
7 | Codeversed Logo
8 | Normal
9 | Big Text Style
10 | Big Picture Style
11 | Inbox Style
12 | Custom View
13 |
14 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
26 |
27 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/app/src/test/java/com/aprbrother/aprilbeacondemos/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilbeacondemos;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilBeaconDemos_android_studio/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Apr 06 09:51:33 CST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/AprilBeaconDemos_android_studio/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/AprilSDK/ab-sdk-beta1.7.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilSDK/ab-sdk-beta1.7.3.jar
--------------------------------------------------------------------------------
/AprilSDK/aprilscansdk.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/AprilSDK/aprilscansdk.jar
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AprilBrother-Android-SDK
2 |
3 | AprilBrother SDK for Android
4 |
5 | You can scan beacon and modify beacon
6 |
7 | ##Add aprilscansdk for only scan
8 | * the demo aprilscan is a android studio moudle
9 |
10 | ## Docs
11 |
12 | * [Current JavaDoc documentation](//aprilbrother.github.io/aprilbeacon-android-sdk/JavaDocs/index.html)
13 | * [Community for AprilBeacon](http://bbs.aprbrother.com)
14 | * [ChangeLog](https://github.com/AprilBrother/AprilBeacon-Android-SDK/wiki/ChangeLog)
15 |
16 | ## Installation
17 |
18 | * Copy ab-sdk-beta.jar to your libs directory.
19 | * Add following permissions and service declaration to your AndroidManifest.xml:
20 | ```
21 |
22 |
23 |
24 |
27 |
28 |
29 |
30 |
32 |
33 |
35 |
37 | ```
38 |
39 |
40 | ## Note
41 |
42 | * For Android 7.0, you should set `beaconManager.setRangingExpirationMill(30L);` before start scan
43 | * If you want to use change the characteristic you should make sure that our beacon's hardware is above 2.0
44 | * the default password is `195660`
45 | * Android M to access the hardware identifiers of nearby external devices via Bluetooth and Wi-Fi scans, your app must now have the `ACCESS_FINE_LOCATION` or `ACCESS_COARSE_LOCATION` permissions
46 |
47 | ## Proguard
48 | * `-libraryjars libs/ab-sdk-beta1.6.3.jar`
49 | * `-keep class com.aprilbrother.aprilbrothersdk.**`
50 | * `-keep class com.aprilbrother.aprilbrothersdk.Utils{*;}`
51 | * if have this question (Can't process class [com/aprilbrother/aprilbrothersdk/services/ABeaconUartService$1.class] (Unknown verification type [18] in stack map frame)) repalce the proguard.jar
52 | * ADT: replace sdk/tools/proguard/lib/proguard.jar
53 | * AS: replace android-studio/gradle/m2repository/net/sf/proguard/proguard-base/5.x/proguard-base-5.x.jar
54 |
55 |
--------------------------------------------------------------------------------
/aprilscan/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/aprilscan/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 24
5 | buildToolsVersion "24.0.3"
6 |
7 | defaultConfig {
8 | applicationId "com.aprbrother.aprilscan"
9 | minSdkVersion 18
10 | targetSdkVersion 22
11 | versionCode 1
12 | versionName "1.0"
13 |
14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15 |
16 | }
17 | buildTypes {
18 | release {
19 | minifyEnabled false
20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21 | }
22 | }
23 | sourceSets {
24 | main {
25 | jniLibs.srcDirs = ['libs']
26 | }
27 | }
28 | }
29 |
30 | dependencies {
31 | compile fileTree(include: ['*.jar'], dir: 'libs')
32 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
33 | exclude group: 'com.android.support', module: 'support-annotations'
34 | })
35 | compile 'com.android.support:appcompat-v7:24.2.1'
36 | testCompile 'junit:junit:4.12'
37 | compile files('libs/aprilscansdk.jar')
38 | }
39 |
--------------------------------------------------------------------------------
/aprilscan/libs/aprilscansdk.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/libs/aprilscansdk.jar
--------------------------------------------------------------------------------
/aprilscan/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in E:\sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/aprilscan/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/BeaconAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.TextView;
9 |
10 | import com.aprbrother.aprilbeaconscansdk.Beacon;
11 |
12 | import java.util.ArrayList;
13 | import java.util.Collection;
14 |
15 |
16 | public class BeaconAdapter extends BaseAdapter {
17 |
18 | private ArrayList beacons;
19 | private LayoutInflater inflater;
20 |
21 | public BeaconAdapter(Context context) {
22 | this.inflater = LayoutInflater.from(context);
23 | this.beacons = new ArrayList();
24 | }
25 |
26 | public void replaceWith(Collection newBeacons) {
27 | this.beacons.clear();
28 | this.beacons.addAll(newBeacons);
29 | notifyDataSetChanged();
30 | }
31 |
32 | @Override
33 | public int getCount() {
34 | return beacons.size();
35 | }
36 |
37 | @Override
38 | public Beacon getItem(int position) {
39 | return beacons.get(position);
40 | }
41 |
42 | @Override
43 | public long getItemId(int position) {
44 | return position;
45 | }
46 |
47 | @Override
48 | public View getView(int position, View view, ViewGroup parent) {
49 | view = inflateIfRequired(view, position, parent);
50 | bind(getItem(position), view);
51 | return view;
52 | }
53 |
54 | private void bind(Beacon beacon, View view) {
55 | ViewHolder holder = (ViewHolder) view.getTag();
56 | holder.macTextView.setText("MAC : " + beacon.getMacAddress() + "("
57 | + beacon.getDistance() + "m)");
58 | holder.uuidTextView.setText("UUID: " + beacon.getProximityUUID());
59 | holder.majorTextView.setText("Major: " + beacon.getMajor());
60 | holder.minorTextView.setText("Minor: " + beacon.getMinor());
61 | holder.measuredPowerTextView.setText("MPower: "
62 | + beacon.getMeasuredPower());
63 | holder.rssiTextView.setText("RSSI: " + beacon.getRssi());
64 | }
65 |
66 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
67 | if (view == null) {
68 | view = inflater.inflate(R.layout.device_item, null);
69 | view.setTag(new ViewHolder(view));
70 | }
71 | return view;
72 | }
73 |
74 | static class ViewHolder {
75 | final TextView macTextView;
76 | final TextView uuidTextView;
77 | final TextView majorTextView;
78 | final TextView minorTextView;
79 | final TextView measuredPowerTextView;
80 | final TextView rssiTextView;
81 | final TextView proximityView;
82 |
83 | ViewHolder(View view) {
84 | macTextView = (TextView) view.findViewWithTag("mac");
85 | uuidTextView = (TextView) view.findViewWithTag("uuid");
86 | majorTextView = (TextView) view.findViewWithTag("major");
87 | minorTextView = (TextView) view.findViewWithTag("minor");
88 | measuredPowerTextView = (TextView) view.findViewWithTag("mpower");
89 | rssiTextView = (TextView) view.findViewWithTag("rssi");
90 | proximityView = (TextView) view.findViewWithTag("proximity");
91 | }
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/ComparatorBeaconByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 |
4 | import com.aprbrother.aprilbeaconscansdk.Beacon;
5 |
6 | import java.util.Comparator;
7 |
8 |
9 | public class ComparatorBeaconByRssi implements Comparator {
10 |
11 | @Override
12 | public int compare(Beacon lhs, Beacon rhs) {
13 |
14 | if(lhs.getRssi() == rhs.getRssi()){
15 | int flag=lhs.getProximityUUID().compareTo(rhs.getProximityUUID());
16 | if(flag==0){
17 | if(lhs.getMajor() == rhs.getMajor()){
18 | if(lhs.getMinor() == rhs.getMinor()){
19 | return 0;
20 | }else{
21 | return lhs.getMinor() - rhs.getMinor();
22 | }
23 | }else{
24 | return lhs.getMajor() - rhs.getMajor();
25 | }
26 | }else{
27 | return flag;
28 | }
29 | }else{
30 | return rhs.getRssi() - lhs.getRssi();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/ComparatorEddyStoneByRssi.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 |
4 | import com.aprbrother.aprilbeaconscansdk.EddyStone;
5 |
6 | import java.util.Comparator;
7 |
8 |
9 |
10 | public class ComparatorEddyStoneByRssi implements Comparator {
11 |
12 | @Override
13 | public int compare(EddyStone lhs, EddyStone rhs) {
14 | return rhs.getRssi() - lhs.getRssi();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/EddyStoneAdapter.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.TextView;
9 |
10 | import com.aprbrother.aprilbeaconscansdk.EddyStone;
11 |
12 | import java.util.ArrayList;
13 | import java.util.Collection;
14 |
15 |
16 | public class EddyStoneAdapter extends BaseAdapter {
17 |
18 | private ArrayList eddyStones;
19 | private LayoutInflater inflater;
20 |
21 | public EddyStoneAdapter(Context context) {
22 | this.inflater = LayoutInflater.from(context);
23 | this.eddyStones = new ArrayList();
24 | }
25 |
26 | public void replaceWith(Collection newBeacons) {
27 | this.eddyStones.clear();
28 | this.eddyStones.addAll(newBeacons);
29 | notifyDataSetChanged();
30 | }
31 |
32 | @Override
33 | public int getCount() {
34 | return eddyStones.size();
35 | }
36 |
37 | @Override
38 | public EddyStone getItem(int position) {
39 | return eddyStones.get(position);
40 | }
41 |
42 | @Override
43 | public long getItemId(int position) {
44 | return position;
45 | }
46 |
47 | @Override
48 | public View getView(int position, View view, ViewGroup parent) {
49 | view = inflateIfRequired(view, position, parent);
50 | bind(getItem(position), view);
51 | return view;
52 | }
53 |
54 | private void bind(EddyStone eddyStone, View view) {
55 | ViewHolder holder = (ViewHolder) view.getTag();
56 | holder.name.setText(eddyStone.getName());
57 | holder.macTextView.setText(eddyStone.getMacAddress());
58 | if(eddyStone.getModel().equals("url")){
59 | holder.uuidTextView.setText("URL : "+eddyStone.getUrl());
60 | holder.modelTextView.setText("MODEL : "+"url");
61 | }else if(eddyStone.getModel().equals("uid")){
62 | holder.uuidTextView.setText("UID : "+eddyStone.getUid());
63 | holder.modelTextView.setText("MODEL : "+"uid");
64 | }
65 | holder.rssiTextView.setText("RSSI : "+eddyStone.getRssi());
66 | }
67 |
68 | private View inflateIfRequired(View view, int position, ViewGroup parent) {
69 | if (view == null) {
70 | view = inflater.inflate(R.layout.devices_list_item, null);
71 | view.setTag(new ViewHolder(view));
72 | }
73 | return view;
74 | }
75 |
76 | static class ViewHolder {
77 | final TextView name;
78 | final TextView macTextView;
79 | final TextView uuidTextView;
80 | final TextView modelTextView;
81 | final TextView rssiTextView;
82 |
83 | ViewHolder(View view) {
84 | name = (TextView) view.findViewWithTag("name");
85 | macTextView = (TextView) view.findViewWithTag("mac");
86 | uuidTextView = (TextView) view.findViewWithTag("uuid");
87 | modelTextView = (TextView) view.findViewWithTag("model");
88 | rssiTextView = (TextView) view.findViewWithTag("rssi");
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/EddyStoneScanActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.widget.ListView;
6 |
7 | import com.aprbrother.aprilbeaconscansdk.EddyStone;
8 | import com.aprbrother.aprilbeaconscansdk.ScanManager;
9 |
10 | import java.util.ArrayList;
11 | import java.util.Collections;
12 |
13 |
14 | public class EddyStoneScanActivity extends AppCompatActivity {
15 | ScanManager scanManager;
16 | EddyStoneAdapter adapter;
17 | private ArrayList eddyStones;
18 |
19 | @Override
20 | protected void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.activity_eddystonescan);
23 | eddyStones = new ArrayList<>();
24 | initView();
25 | initScan();
26 | }
27 |
28 | private void initScan() {
29 | scanManager = new ScanManager(this);
30 | scanManager.setScanListener(new ScanManager.MyScanListener() {
31 | @Override
32 | public void onEddyStoneDiscovered(EddyStone eddyStone) {
33 | if (!eddyStones.contains(eddyStone)) {
34 | eddyStones.add(eddyStone);
35 | } else {
36 | eddyStones.remove(eddyStone);
37 | eddyStones.add(eddyStone);
38 | }
39 | ComparatorEddyStoneByRssi com = new ComparatorEddyStoneByRssi();
40 | Collections.sort(eddyStones, com);
41 | adapter.replaceWith(eddyStones);
42 | }
43 | });
44 | }
45 |
46 | private void initView() {
47 | ListView lv_eddystone = (ListView) findViewById(R.id.lv_eddystone);
48 | adapter = new EddyStoneAdapter(this);
49 | lv_eddystone.setAdapter(adapter);
50 | }
51 |
52 | @Override
53 | protected void onStart() {
54 | super.onStart();
55 | scanManager.startScan();
56 | }
57 |
58 | @Override
59 | protected void onStop() {
60 | super.onStop();
61 | scanManager.stopScan();
62 | }
63 |
64 | @Override
65 | protected void onDestroy() {
66 | super.onDestroy();
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/aprilscan/src/main/java/com/aprbrother/aprilscan/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.aprbrother.aprilscan;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.util.Log;
7 | import android.view.View;
8 | import android.widget.ListView;
9 | import android.widget.TextView;
10 |
11 | import com.aprbrother.aprilbeaconscansdk.Beacon;
12 | import com.aprbrother.aprilbeaconscansdk.ScanManager;
13 |
14 | import java.util.ArrayList;
15 | import java.util.Collections;
16 |
17 | public class MainActivity extends AppCompatActivity {
18 |
19 | private static final String TAG = MainActivity.class.getSimpleName();
20 | private BeaconAdapter adapter;
21 | private ArrayList myBeacons;
22 | private ScanManager scanManager;
23 |
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | super.onCreate(savedInstanceState);
27 | setContentView(R.layout.activity_main);
28 | initView();
29 | startScan();
30 | }
31 |
32 | private void startScan() {
33 | scanManager = new ScanManager(this);
34 | // scanManager.setUuid("00000000-0000-0000-0000-000000000000");//添加需要扫描的uuid 只有符合的才会返回 不设置返回所有
35 | // scanManager.setMajor(222);//添加需要扫描的beacon的major 只有符合的major才会返回 不设置返回所有
36 | // scanManager.setMinor(111);//添加需要扫描的beacon的minor 只有符合的minor才会返回 不设置返回所有
37 | // scanManager.setScanPeriod(1000);//设置beacon扫描 反馈结果时间间隔 时间越久 扫描丢失率越低 默认3000ms
38 | // scanManager.startScan();//启动扫描
39 | // scanManager.stopScan();//停止扫描
40 | // scanManager.setScanListener(new ScanManager.MyScanListener());//设置扫描监听 监听扫描返回数据
41 | scanManager.setScanListener(new ScanManager.MyScanListener() {
42 | @Override
43 | public void onScanListenre(ArrayList beacons) {
44 | Log.i(TAG, "------------------------------beacons.size = " + beacons.size());
45 | myBeacons.clear();
46 | myBeacons.addAll(beacons);
47 | ComparatorBeaconByRssi com = new ComparatorBeaconByRssi();
48 | Collections.sort(myBeacons, com);
49 | adapter.replaceWith(myBeacons);
50 | }
51 | });
52 | }
53 |
54 | private void initView() {
55 | myBeacons = new ArrayList();
56 | ListView lv = (ListView) findViewById(R.id.lv);
57 | adapter = new BeaconAdapter(this);
58 | lv.setAdapter(adapter);
59 | TextView tv = (TextView) findViewById(R.id.tv_scan_eddystone);
60 | tv.setOnClickListener(new View.OnClickListener() {
61 | @Override
62 | public void onClick(View v) {
63 | Intent intent = new Intent(MainActivity.this,
64 | EddyStoneScanActivity.class);
65 | startActivity(intent);
66 | }
67 | });
68 | }
69 |
70 | @Override
71 | protected void onStart() {
72 | super.onStart();
73 | scanManager.startScan();
74 | }
75 |
76 | @Override
77 | protected void onStop() {
78 | super.onStop();
79 | scanManager.stopScan();
80 | }
81 |
82 | @Override
83 | protected void onDestroy() {
84 | super.onDestroy();
85 | }
86 |
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/layout/activity_eddystonescan.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
19 |
20 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/layout/device_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
18 |
19 |
24 |
25 |
29 |
30 |
34 |
35 |
39 |
40 |
44 |
45 |
46 |
50 |
51 |
55 |
56 |
60 |
61 |
62 |
66 |
67 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/layout/devices_list_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
13 |
20 |
21 |
26 |
27 |
32 |
33 |
34 |
41 |
42 |
47 |
48 |
49 |
57 |
58 |
63 |
64 |
69 |
70 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/aprilscan/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/aprilscan/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/aprilscan/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/aprilscan/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/aprilscan/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/aprilscan/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | AprilScan
3 |
4 |
--------------------------------------------------------------------------------
/aprilscan/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
17 |
--------------------------------------------------------------------------------
/proguard.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AprilBrother/AprilBeacon-Android-SDK/6130e5ecbc420831d7166f1564fb6199a6b12763/proguard.jar
--------------------------------------------------------------------------------