android-ibeacon

Auto launch an activity when beacon comes in a certain distance

不想你离开。 提交于 2020-01-03 04:59:05
问题 I want my application to auto launch an activity when beacon comes within a certain distance (in my case it is 1 meter) My activity gets launched when i plug in or plug off the charger and when i boot the device but it didn't get auto launch when i closed the application and beacon is in 1 meter. what i want is if beacon is in 1 meter then activity should launch by itself. I am using android beacon library and following the same steps mentioned on https://altbeacon.github.io/android-beacon

Beacons not detected in Android service

一笑奈何 提交于 2020-01-03 04:25:13
问题 I'm using the Altbeacon library (stable release 2.1.4) to detect beacons. If I do it in an Activity, I have no problems detecting them. However I can't get this to work from a service. Here's what I've got: package com.ibeacontest.android; import java.util.Collection; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org.altbeacon.beacon.BeaconManager; import org.altbeacon.beacon.BeaconParser; import org.altbeacon.beacon.Identifier; import org.altbeacon

How to reduce the range detection interval in beacon for Android

人走茶凉 提交于 2019-12-24 19:22:32
问题 I have using Android Beacon Library for one of my beacon solution . I can see that if I enter the beacon range ..it calls the "didEnterRegion" function but it never enter the "didExitRegion" when I go off the beacon region . I am taking the above code which I used in here Android iBeacon App not working in the background . In addition to that is there any way I can reduce the range detection because I keep on getting that very frequently because logically I want to record the data and send

IBeacon getting warning Implcit intents are not safe on callback of MonitorNotifier

老子叫甜甜 提交于 2019-12-23 05:35:12
问题 I am using Android 4.4 and getting a warning message in the callback of Monitoring when a beacon with specified region is found. code I am using for monitoring is @Override public void onIBeaconServiceConnect() { iBeaconManager.setMonitorNotifier(new MonitorNotifier() { @Override public void didEnterRegion(Region region) { Log.e("didEnterRegion","I just saw an iBeacon for the first time!"); } @Override public void didExitRegion(Region region) { Log.e("didExitRegion","I no longer see an

AltBeacon library BootstrapNotifier does not call didEnterRegion

ⅰ亾dé卋堺 提交于 2019-12-22 09:20:57
问题 Hi i have created app using altbeacon reference app. And i want to call didEnterRegion using bootstrap notifier when app sees beacon in background. But i dont want it to scan background every 5 minutes, i want my app react to new beacon immediately. Is there some way to do this ? My Code : private static final String TAG = ".Application"; private final Identifier uuid = Identifier.parse("A1B2C3D4-AAAA-48D2-B060-D0C0D0C0D0C0"); private RegionBootstrap regionBootstrap; @Override public void

AltBeacon onBeaconServiceConnect not called

浪尽此生 提交于 2019-12-22 05:52:07
问题 I stuck implementing simple Beacon monitor with AltBeacon library using its examples. In short: I took its reference application, downloaded and integrated its latest build and run app on my Samsung Galaxy S2 with CM (Android 4.4.4). I see that onBeaconServiceConnect callback never called, though bindService is called. I believe onBeaconServiceConnect should be called in order application to work correctly. I've tried to set beaconManager.debug = true; but it didn't show me any new logs

Why isMultipleAdvertisementSupported() returns false, when getBluetoothLeAdvertiser returns an object?

人盡茶涼 提交于 2019-12-21 19:41:36
问题 I am trying to play with BLE transmission on my device. Here is the code I use and the output: // check BLE support Log.i(TAG, "BLE supported: " + getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)); // true // check BLE transmission support final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); BluetoothAdapter mBluetoothAdapter = bluetoothManager.getAdapter(); Log.i(TAG, "isMultipleAdvertisementSupported: " +

Does Android Beacon Library really support background scanning?

三世轮回 提交于 2019-12-20 10:55:26
问题 I am using Android Beacon Library for BLE scanning with example. It works fine in foreground for both monitoring and ranging. However, for background, it only works for the cases of pressing "Home" in app and screen off. It is not work when I kill the app from task switcher. In the example, I cannot find anything like Service to make things working in background. Questions: Does Android Beacon Library support background scanning if the app is killed in task switcher? If so, how to do this?

Android beacon Monitoring while Ranging

三世轮回 提交于 2019-12-13 04:34:44
问题 In continuation with my previous question asked here, I am no longer following the approach of creating single Region for all beacons. Now i am creating Regions at run-time. I did ranging first. Below is code that i am trying to implement. public void onBeaconsDiscovered(Region region, final List<Beacon> beacons) { for(int i =0;i<beacons.size();i++) { Region r = new Region("RegionID", beacons.get(i).getProximityUUID(), beacons.get(i).getMajor(), beacons.get(i).getMinor()); try { beaconManager

BluetoothCrashResolver detects a crash on app launch

雨燕双飞 提交于 2019-12-13 00:29:20
问题 BluetoothCrashResolver detects a crash on app launch the sequence of flow is as follows: 1.the device's bluetooth is off initially 2.the app is launched 3.the app first checks whether bluetooth is on 4.if not ON,app displays a popup to enable bluetooth 5.User allows bluetooth to be switched on 6.bluetoothresolver says "crash detected" as lastBluetoothTurningOnTime=01/01/1970; lastBluetoothOffTime=01/01‌​/1970; so the if statement inside "case BluetoothAdapter.STATE_ON" fails. Let me know if