android-ibeacon

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

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,

Can I use Android Beacon Library in foreground service, even on Android 8 (Oreo)?

為{幸葍}努か 提交于 2019-12-05 02:44:36
问题 What I want to achieve I am building an app for a shopping mall, with large amount of beacons installed not quite far away from each other (assume ~20m distance). When a user walks in this mall, even without opening the app, the app needs to keep scan for beacons. When a beacon is detected, I will then query the server to ask if I need to and what local notification to push to user. What I planned to do My original plan was to create a Service , returns START_STICKY in onStartCommand() in

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

╄→尐↘猪︶ㄣ 提交于 2019-12-04 10:08:08
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: " + mBluetoothAdapter.isMultipleAdvertisementSupported()); // false Log.i(TAG, "isOffloadedFilteringSupported: " +

Can I use Android Beacon Library in foreground service, even on Android 8 (Oreo)?

半世苍凉 提交于 2019-12-03 16:41:34
What I want to achieve I am building an app for a shopping mall, with large amount of beacons installed not quite far away from each other (assume ~20m distance). When a user walks in this mall, even without opening the app, the app needs to keep scan for beacons. When a beacon is detected, I will then query the server to ask if I need to and what local notification to push to user. What I planned to do My original plan was to create a Service , returns START_STICKY in onStartCommand() in order to make sure that the service will restart itself even the app is killed by a task manager. This

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

*爱你&永不变心* 提交于 2019-12-03 07:32:36
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 similar to iOS's "didRangeBeacons" method. *Also will it be the bad programming to continually scan

How to detect IBeacon in android without using any library

安稳与你 提交于 2019-12-03 06:19:07
问题 i am new to Ibeacon and i want to know can we detect Ibeacon in android without using any SDKLibrary or library can any one give sample example. i know some library like Radius Networks. but i don't want to use any library 回答1: The Android OS does not have any code that detects iBeacons, but it does have code that allows you to scan for Bluetooth LE devices, which are a lower-level device than an iBeacon. You can roll-your own code that detects iBeacons using this Bluetooth LE scanning. That

Does Android Beacon Library really support background scanning?

↘锁芯ラ 提交于 2019-12-03 00:42:45
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? Any example? I worked with android iBeaon library in that for background scanning I created a service

How to detect IBeacon in android without using any library

我是研究僧i 提交于 2019-12-02 19:44:08
i am new to Ibeacon and i want to know can we detect Ibeacon in android without using any SDKLibrary or library can any one give sample example. i know some library like Radius Networks. but i don't want to use any library The Android OS does not have any code that detects iBeacons, but it does have code that allows you to scan for Bluetooth LE devices, which are a lower-level device than an iBeacon. You can roll-your own code that detects iBeacons using this Bluetooth LE scanning. That's exactly what the Android iBeacon Library from Radius Networks does. It is open source, so if you don't

Finding point between two geo locations of beacons

ⅰ亾dé卋堺 提交于 2019-12-02 03:47:54
问题 Suppose we have two beacons placed in both sides of the road. We know their latitude and longitude where they are positioned (we treat them as a location). We also know the distance in meters between these two beacons (measered using Haversine Formula). Our device is moving between(inside range of these beacons) these two points.Is there out any function that will help us calculate our current position based on the distance between two beacons or based on the distance from device to a single