altbeacon

Android Beacon Library - correct use of BluetoothMedic?

爷,独闯天下 提交于 2019-12-01 13:09:17
问题 I have some questions on the use of Bluetooth Medic, based on the following observations. Because Bluetooth stops on one of my devices I have been looking at the BluetoothMedic to see whether it can help. I've looked at the debug messages and the source code. I get somewhat different results depending on whether I use enablePeriodicTests() or individually run runScanTest() and runTransmitterTest(). With enablePeriodicTests(), BluetoothTestJob.onStartJob() runs scan and transmitter tests every

Android iBeacon App not working in the background

折月煮酒 提交于 2019-12-01 12:53:10
问题 I have developed Android app to detect the beacon if the customer is near to 1 mt distance . I am using Android Beacon Library to develop the application.When we are in foreground the I get the notification but as soon as the application goes into background .. notification stooped working . Could you help me where am I wrong ? Below is the code for BeaconApp and MainActivity. BeaconApp.java public class BeaconApp extends Application implements BootstrapNotifier { private static final String

All beacons are not shown in Android using altBeacon library

こ雲淡風輕ζ 提交于 2019-11-30 17:26:08
问题 I am using the AltBEacon Android library for developing an iBeacon app for Android devices . I am scanning for beacons, however, only two out of four beacons are found (sometimes 1/4). I increase mBeaconManager.setForegroundScanPeriod(5000l); to 5 seconds, but still same result. I am not sure if the CustomAdapter I use for binding details to view is wrong or the issue is do with the mobile device (I am using Galaxy Note II - Android 4.4.2 (KitKat))? Can anyone locate my mistake? Another issue

Correct layout to detect Kontakt Beacon on Android with AltBeacon

佐手、 提交于 2019-11-29 12:25:33
问题 I'm trying to detect a Kontakt Beacon with the following BeaconLayout: setBeaconLayout("m:8-9=0215,i:10-13,i:14-15,i:16-17,i:18-25")); but I don't seem to be doing it correctly. The advertising packet structure is like this: Thanks in advance. 回答1: Thanks to @davidgyoung comments, I finally could detect my Kontakt beacon with the following code: public class MainActivity extends Activity implements BeaconConsumer { protected static final String TAG = "RangingActivity"; BeaconManager

What is the correct BeaconLayout for Estimote and Gimbal beacons

不羁岁月 提交于 2019-11-29 09:32:13
问题 I would like the 2.0 release of the Android Beacon Library to be able to properly detect both old style Estimote beacons (pre-2013 models that did not support iBeacon technology) and Gimbal beacons. I know that Gimbal beacons have encrypted identifiers, so these cannot be read directly. But I would at least like to share code that can detect that one is around. Here is what I have: Code to detect a Gimbal beacon (without reading encrypted identifiers): BeaconManager beaconManager =

Gatt 133 exception on read characteristic and followed by gatt 22

本小妞迷上赌 提交于 2019-11-28 12:59:33
Problem: I am getting a GATT exception 133 when trying to read the characteristics. I made a delay to read but unfortunately it doesn't works followed by the GATT 22 error . It happens on few devices but i don't know how to solve this problem. Code: public void performRead() { printMessage("\nperform READ started..."); UUID serviceuid = UUID.fromString(UUID_SERVICE); if (BDA.getmBluetoothGatt() == null) return; BluetoothGattService service = BDA.getmBluetoothGatt().getService( serviceuid); UUID characteristicuid = UUID.fromString(UUID_CHARACTERISTIC_STATUS); BluetoothGattCharacteristic

Gatt 133 exception on read characteristic and followed by gatt 22

让人想犯罪 __ 提交于 2019-11-27 07:25:34
问题 Problem: I am getting a GATT exception 133 when trying to read the characteristics. I made a delay to read but unfortunately it doesn't works followed by the GATT 22 error . It happens on few devices but i don't know how to solve this problem. Code: public void performRead() { printMessage("\nperform READ started..."); UUID serviceuid = UUID.fromString(UUID_SERVICE); if (BDA.getmBluetoothGatt() == null) return; BluetoothGattService service = BDA.getmBluetoothGatt().getService( serviceuid);

Is this the correct layout to detect iBeacons with AltBeacon's Android Beacon Library?

别等时光非礼了梦想. 提交于 2019-11-26 03:02:58
问题 I have successfully modified the reference implementation app of the Android Beacon Library using the following beacon layout, so that it detects an iBeacon device that I have at hand: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this); beaconManager.getBeaconParsers().add(new BeaconParser(). setBeaconLayout(\"m:0-3=4c000215,i