altbeacon

iBeacon Ranging Service Not Returning any Beacons (Part 2)

倾然丶 夕夏残阳落幕 提交于 2019-12-12 06:35:57
问题 My code has now reached checkpoint 1 and 2. However, it is only detecting the beacon once. I want it to keep receiving the location of the beacon (distance) every five seconds. How can I implement this? Thanks again public class RangingService extends Service implements BeaconConsumer { private BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this); Handler handler; String b = ""; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onStart

AltBeacon application crashes on Android tab

非 Y 不嫁゛ 提交于 2019-12-12 04:56:55
问题 I have been trying to use the AltBeacon Monitoring Example Code to monitor my Kontakt.io beacon as described http://altbeacon.github.io/android-beacon-library/samples.html here. I could import the library (android-beacon-library-2.1.3.aar) in my android studio (1.0.2) and there is no error in the monitoring code. But when I want to run it on my tab (LG Tab 7 API 19) it stops working with a message on the screen. I can be sure that the Altbeacon lib is imported successfully as it appears in

Implementing BootstrapNotifier on Activity instead of Application class

痞子三分冷 提交于 2019-12-12 02:55:42
问题 I am using altBeacon library for beacon detection. After checking out the sample codes on Beacon detection, they always implement the Interface BootstrapNotifier on the Application class instead of Activity , which is used for detecting beacons in the background. However I have noticed that beacon detection in the background stops when BootstrapNotifier is implemented on Activity . I don't want my app to detect beacons as soon as it is launched hence I have not implemented BootStrapNotifier

Stopping and restarting foreground service scanning with altbeacon

南楼画角 提交于 2019-12-11 18:04:36
问题 I'm currently getting a headache with sticky notifications while trying to stop and restart foreground scanning in altbeacon. What I want to do: I want to start scanning for Bluetooth LE Beacons in a vehicle after the User presses a Button in my App. The App should notice if the User leaves his vehicle (event region left) and perform some actions. After that, the User can go back to the login screen and start the process again. The Beacon detection should still be working when the app is

calculate distance from beacon when user is moving in a vehicle

我与影子孤独终老i 提交于 2019-12-11 10:15:32
问题 How to calculate distance using BLE beacons if the user is moving in a vehicle with 2-15kmph speed?Also,if the distance won't give me accurate results is there any other mechanism with the help of which I can calculate the nearest beacon.The default implementation does not give me proper results as there is a 20sec lag in distance estimates. Secondly,in which cases should ARMA filter be used. 回答1: Beacon distance estimates are only estimates, so you must set accuracy expectations accordingly.

How does BLE scanning work for altbeacon library on Oreo?

冷暖自知 提交于 2019-12-11 09:03:11
问题 Before Android L Android Altbeacon library used background running services to scan BLE beacons. Default scan times are 1.1 seconds in a loop in the foreground and 10 seconds every 5 mins in the background. Also for background tasks alarm manager is used to wakeup the app. I was looking at how similar setup works in Android Oreo given that long-running background services are not allowed. I was going through http://www.davidgyoungtech.com/2017/08/07/beacon-detection-with-android-8 and it did

How can I start / disable background monitoring for beacons at runtime with AltBeacon Library for Android?

大兔子大兔子 提交于 2019-12-11 05:17:46
问题 the AltBeacon documentation say I need to initialize the library in the Application onCreate() for background monitoring. But I have the data needed to initialize it at runtime. Specifically at runtime (after a remote http service call) I know: IF beacon tracking should be started at all which regions to monitor Furthermore I may need to turn it off completely if some condition changes (remotely configured). What's the correct way with the current version of the library (2.5+) to handle this

ServiceNotDeclaredException: The BeaconService is not properly declared in AndroidManifest.xml

被刻印的时光 ゝ 提交于 2019-12-10 18:36:05
问题 I get the following error when i run a Unit Test in my Android project (I don't get the error while building the app and running it on a device): The BeaconService is not properly declared in AndroidManifest.xml. If using Eclipse, please verify that your project.properties has manifestmerger.enabled=true org.altbeacon.beacon.BeaconManager$ServiceNotDeclaredException: The BeaconService is not properly declared in AndroidManifest.xml. If using Eclipse, please verify that your project.properties

Jaalee beacon with altbeacon?

两盒软妹~` 提交于 2019-12-10 18:12:24
问题 I have been trying to connect to a Jaalee beacon using altbeacon library without success. The service UUID is 0x00001532-1212-EFDE-1523-785FEABCD123 What is the correct setting for setBeaconLayout in altbeacon? For example for another type of beacons that is beaconManager.getBeaconParsers().clear(); beaconManager.getBeaconParsers().add(new BeaconParser(). setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25")); I have searched everywhere and I cannot find it. Thanks ** UPDATE **

Exception when trying to add a BeaconParser to AltBeacon lib

我怕爱的太早我们不能终老 提交于 2019-12-10 09:46:57
问题 I have been trying to modify the reference app from AltBeacon in order to detect iBeacons. In RangingActivity, I replaced @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ranging); beaconManager.bind(this); } with @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ranging); BeaconParser bp = new BeaconParser(); bp.setBeaconLayout(