ibeacon-android

What exactly is txPower for Bluetooth LE and how is it used?

大憨熊 提交于 2019-12-04 20:29:05
问题 I am trying to understand what exactly txPower is and how to use it, since I am planning to develop and Android app that uses Beacons. I have seen 2 definitions online: 1.The transmitted power of the beacon. 2.The received power 1 meter away from the beacon. How are these two definitions related? Also, when transmitting a Beacon signal from a device using an app such as QuickBeacon, how do I determine what to set the power (txPower) to? 回答1: Most beacon formats contain a single byte in the

Android 4.4 BLE Scanning lack of stability

旧时模样 提交于 2019-12-04 13:02:24
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 it more stable programmatically ? (for example enabling / disabling Bluetooth regularly) EDIT To

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: " +

Combine iBeacon bluetooth low energy with Android 4.3

北战南征 提交于 2019-12-04 07:23:14
问题 I'm looking for a way to detect iBeacon (iOS 7.0 feature) from an Android device. I read the Android documentation, where it seem that the iBeacon is some kind of GATT server which sends its position. While the Android documentation says that I should not poll that data, but for the detection this would be nessesary. I google a lot but this topic is quite new (I even created a new tag ibeacon) so I would be happy if I get some links to ressources from the iOS world which descripes the

Prompting for location permission when NOT monitoring in background?

蓝咒 提交于 2019-12-04 04:50:23
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, as expected. Coming back to Activity from previous app list, the RuntimeException is thrown again each

Using iBeacons in a Cordova plugin i.e. outside of an Activity/Service

不打扰是莪最后的温柔 提交于 2019-12-03 22:26:38
问题 I'm trying to write a Cordova plugin which interacts with the Radius Networks iBeacon library for Android. Now, I'm aware the library is designed for use with an Activity/Service but that isn't going to work in my situation, so I'm trying to adapt it as best I can with the documentation. At the moment, I'm just trying to get it to dump out the number of iBeacons it can see. Here is my plugin code, I've omitted the package/imports for brevity: public class IBeaconPlugin extends CordovaPlugin

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