ibeacon-android

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

How to add more than one beacon in a single region?

こ雲淡風輕ζ 提交于 2019-12-10 16:39:00
问题 According to Estimote: There is almost no limit to how many beacons can be included in a single region (technically, it’s over 4 billion). How do we add more than one beacon in one single region for monitoring? We create a region like this: UUID ESTIMOTE_PROXIMITY_UUID = UUID.fromString("B9407F30-F5F8-4568-AFF9-25556B57FE6D"); Region ALL_ESTIMOTE_BEACONS = new Region("regionId", ESTIMOTE_PROXIMITY_UUID, null, null); 回答1: From an Estimote community manager: If a region is defined by UUID or

Android 4.4 BLE Scanning lack of stability

青春壹個敷衍的年華 提交于 2019-12-09 18:59:15
问题 Would a Bluetooth LE Jedi know any trick how to get a reliable BLE scanning mode on cheap Android 4.4 devices ? Everything works fine from Android 5 to 6, and most of the Android 4.4 phones... However, on some cheap phones with 4.4 we encounter random issues, some phones do not detect anything, or sometimes just a few beacons among others, depending on environment, daytime, weather, or whatever... It's obviously due to a poor software or hardware on this side, but is there any trick to make

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,

How to increase the scan period for BLE devices in Android?

旧巷老猫 提交于 2019-12-09 06:37:53
问题 I was trying to implement beacon scanning program, and i want the android BLE services to behave similar to iOS "didRangeBeacons" method,i.e, it should get called every one second. But in android there is no such method. But in android there is "leScanCallback" method that gets called very frequently with a scan period of less than a second. So is there any way that i can implement my functionality in leScanCallback method and increase its scan period interval to 1 second, so that it behaves

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

How to map in real time using indoor beacons on Android

 ̄綄美尐妖づ 提交于 2019-12-08 04:28:32
问题 How to map in real time using indoor beacons on Android? Did tests using the SDK Estimote however, they do not have support for Android in indoor and do not have a method that returns the distance to the beacon. With that, I'm using Alt SDK that returns me the distance. But not her how to solve these doubts: 1) create a map (2D or 3D Google Maps type) with the location map of the inside of a room or shop for example. 2) show the location of the user's route to the beacon. 3) how to deal with

How to map in real time using indoor beacons on Android

拟墨画扇 提交于 2019-12-07 09:53:33
How to map in real time using indoor beacons on Android? Did tests using the SDK Estimote however, they do not have support for Android in indoor and do not have a method that returns the distance to the beacon. With that, I'm using Alt SDK that returns me the distance. But not her how to solve these doubts: 1) create a map (2D or 3D Google Maps type) with the location map of the inside of a room or shop for example. 2) show the location of the user's route to the beacon. 3) how to deal with the route to the beacon avoiding collision enters walls on the map? 4) how to locate the user's

How to detect iBeacon in Android?

笑着哭i 提交于 2019-12-06 12:27:09
问题 It is the first time I work with iBeacon. So can you tell me how to detect it(give me some code example). Thanks very much. It is very important to me. 回答1: The open source Android iBeacon Library will allow you to do this. Here is a basic code sample: public class MonitoringActivity extends Activity implements IBeaconConsumer { protected static final String TAG = "RangingActivity"; private IBeaconManager iBeaconManager = IBeaconManager.getInstanceForApplication(this); @Override protected

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,