From d46ddd952d9edcacdbb334053ee5f5116e8d060d Mon Sep 17 00:00:00 2001 From: Bill Schilit Date: Thu, 9 Apr 2015 11:07:39 -0700 Subject: [PATCH] Scan for Test Service --- .../src/main/java/org/uribeacon/beacon/UriBeacon.java | 2 ++ .../main/java/org/uribeacon/sample/UriBeaconScanActivity.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/beacon/UriBeacon.java b/android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/beacon/UriBeacon.java index c99f903..3c24d5d 100644 --- a/android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/beacon/UriBeacon.java +++ b/android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/beacon/UriBeacon.java @@ -49,6 +49,8 @@ public class UriBeacon { private static final byte[] URI_SERVICE_16_BIT_UUID_BYTES = {(byte) 0xd8, (byte) 0xfe}; //TODO: Add comments + public static final ParcelUuid TEST_SERVICE_UUID = + ParcelUuid.fromString("0000FEAA-0000-1000-8000-00805F9B34FB"); private static final byte[] TEST_SERVICE_16_BIT_UUID_BYTES = { (byte) 0xaa, (byte) 0xfe}; private static final byte TEST_URL_FRAME_TYPE = 0x10; diff --git a/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/UriBeaconScanActivity.java b/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/UriBeaconScanActivity.java index e1ad0ca..3c4e78c 100644 --- a/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/UriBeaconScanActivity.java +++ b/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/UriBeaconScanActivity.java @@ -234,7 +234,8 @@ protected void onResume() { if (mIsConfig) { mScanFilterUuids = configServices; } else if (filterUriBeacon) { - mScanFilterUuids = new ParcelUuid[]{UriBeacon.URI_SERVICE_UUID}; + mScanFilterUuids = new ParcelUuid[]{ + UriBeacon.URI_SERVICE_UUID, UriBeacon.TEST_SERVICE_UUID}; } else { mScanFilterUuids = null; }