altbeacon

Prompting for location permission when NOT monitoring in background?

怎甘沉沦 提交于 2019-12-09 16:53:24
问题 I'm using the Android Beacon Library. Since Marshmallow, I am seeing the following error, as expected and documented. Permission denial: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results I have my ranging code in a Fragment, and the RuntimeException is thrown when the Fragment is on screen, as expected as I'm not prompting for permission. If I hit the home button, Pause is called, and I'm unbinding beaconManager, and the exception is no longer thrown, again,

Android BTLE -> Cannot find callback wrapper

夙愿已清 提交于 2019-12-08 15:27:12
问题 I am using Android Beacon Library in my app and I copied, word for word, their example for ranging but I keep getting the error you see below the code. Any help would be greatly appreciated, I am just now getting into BTLE/beacons package com.example.josh.beacons; import android.os.Bundle; import android.os.RemoteException; import android.support.v7.app.AppCompatActivity; import android.util.Log; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org

AltBeacon unstable for OnyxBeacons, cycling through didEnterRegion and didExitRegion repeatedly

你。 提交于 2019-12-08 07:06:25
问题 I am building an application using the AltBeacon library to support Onyx Beacons (Beacon One) and Gimbal Beacons (Series 21) My test device is a Nexus 7 2013 with Android 4.4.4 KitKat and an Onyx Beacon. The beacon is just sitting less than a meter next to my device and I am not moving it. The beacon is detected and goes to didEnterRegion then after a minute or so it goes to didExitRegion then the cycle repeats. We have also tested this on a different device (Samsung Phone) using a different

Android AltBeacon library: how to find the beacon layout?

 ̄綄美尐妖づ 提交于 2019-12-07 04:57:02
问题 I'm testing with a new type of beacon, and this is what I got from the debug: onScanResult() - ScanResult{mDevice=20:73:2A:09:3E:41, mScanRecord=ScanRecord [mAdvertiseFlags=26, mServiceUuids=null, mManufacturerSpecificData={76=[2, 21, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 0, 5, 0, 10, -40]}, mServiceData={}, mTxPowerLevel=-2147483648, mDeviceName=null], mRssi=-55, mTimestampNanos=23541956038874} After playing around with many beacon layout in SO, I still can't detect

How to range beacons in background using Altbeacon: Android Beacon Library?

℡╲_俬逩灬. 提交于 2019-12-06 19:33:25
I'm developing an app which provides background Beacon monitoring. I would like to start ranging when user enters beacon from defined region. When app is in background and it's monitoring all the time and user enters my defined region I would like to start ranging and get InstanceID or Major, Minor value to determine what beacon is that, connect to server and send user a notfication. The best would be if I could range and communicate with server in background. I used this sample to achieve background monitoring: https://altbeacon.github.io/android-beacon-library/samples.html . I also

Is there an explanation for the regular oscillation experienced in Bluetooth RSSI

亡梦爱人 提交于 2019-12-05 22:47:28
I am working with kontakt.io Bluetooth eddystone UID beacons and an android application using the alt-beacon library (running on a Samsung Galaxy S5, although I doubt that is relevant). I've done a bunch of trials under different conditions and am working towards determining the feasibility of high-accuracy tracking via trilateration of multiple beacon signals. On multiple occasions I have noticed a regular oscillation of the beacon's RSSI being detected by the android device. Here is one of the more extreme examples. As you can see, the perceived signal strength (RSSI) fluctuates between 3

AltBeacon library BootstrapNotifier does not call didEnterRegion

混江龙づ霸主 提交于 2019-12-05 18:22:10
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 onCreate() { super.onCreate(); Log.d(TAG, "App has started"); Region region = new Region(TAG, uuid, null,

Android AltBeacon library: how to find the beacon layout?

放肆的年华 提交于 2019-12-05 11:36:28
I'm testing with a new type of beacon, and this is what I got from the debug: onScanResult() - ScanResult{mDevice=20:73:2A:09:3E:41, mScanRecord=ScanRecord [mAdvertiseFlags=26, mServiceUuids=null, mManufacturerSpecificData={76=[2, 21, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 0, 5, 0, 10, -40]}, mServiceData={}, mTxPowerLevel=-2147483648, mDeviceName=null], mRssi=-55, mTimestampNanos=23541956038874} After playing around with many beacon layout in SO, I still can't detect it for my app. From the debug above, how to find out the beacon parser. Is there a "universal" beacon

Add custom data while advertising by using AltBeacon format

送分小仙女□ 提交于 2019-12-05 07:37:53
问题 I am learning Android app development while building an app that interacts with the physical web. I want to advertise based on AltBeacon specification and add small payload in the form of string or bytes . I came across Beacon.Builder Javadoc but it is not well written. Which function should I use from the above javadoc or is there something else available? My goal is to advertise using my app and transmit certain string. If the other device has my app then it should show notification with

Trilateration in Android using iBeacons

五迷三道 提交于 2019-12-04 21:20:11
问题 We want to implement some kind of indoor position determination using iBeacons. This article seems really interesting, in which the author implemented the Non-linear Least Squares Triangulation, using the Eigen C++ library and the Levenberg Marquardt algorithm. Since Eigen is written in C++, I tried to use JNI and Android NDK in order to use it but it throws a lot of errors that I have no idea how to solve and I couldn´t find anything online. I also tried to use Jeigen, but it does not have