ibeacon-android

startLeScan returns false

醉酒当歌 提交于 2019-12-12 01:28:29
问题 BluetoothAdapter's method startLeScan returns false sometimes during scanning BLE devices.Hence,I am facing issues in my application.I am using the newer method startScan(ScanCallback callback) from Lollipop onwards but needs to support API level 18 and above.Any help is appreciated. 回答1: If you look at the source code for startLeScan here, you will see that there are several things that can cause the return code to be false: A null callback ha been provided A scan has already been started by

Android IBeaconManager not connecting from activity

旧时模样 提交于 2019-12-11 16:51:58
问题 I'm using the IBeacon SDK from radius networks on the android. Im currently using the IBeaconManager in one Activity and one Service. When the app first launches, The activity binds its iBeaconManager object however onIBeaconServiceConnect never gets called. Calling any ranging or monitoring functions ex startRangingBeaconsInRegion(region) is throwing a RemoteException: The IBeaconManager is not bound to the service. Call iBeaconManager.bind(IBeaconConsumer consumer) and wait for a callback

How to increase the delay in the data of the region notifier?

落花浮王杯 提交于 2019-12-11 14:40:14
问题 I have using Android Beacon Library for one of my beacon solution .Is there a way put a delay in data produced by the range notifier because it is giving data very frequently . Below is the code which I am referring to. To see complete code you can go to this thread "Android iBeacon App not working in the background" @Override public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region) { if(beacons.size() > 0) { for (Beacon beacon : beacons) { if (beacon.getDistance() < 1.0

How to Build the sample project for Android library for Beacon?

↘锁芯ラ 提交于 2019-12-11 10:31:31
问题 I am trying to build the following sample project provided by the Radius Networks for integrating beacon in Android. The link for the project follows: sample project But the problem is that I am not able to build the project. Please explain the steps to do so. Thanks in advance. Note - I am using Eclipse IDE with ADT plugin for building the app. The error says - "Android Beacon Library is missing". 回答1: When using Eclipse, you need to have the Android iBeacon Library imported as a separate

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.

iBeacon: defining UUID

余生颓废 提交于 2019-12-11 10:07:02
问题 In the official iBeacon guide for developer Apple states that Application developers should define a UUID specific to their app and deployment use case. Question: Part A: How can I define a UUID in the way that I am sure it won't conflict with any others? Is there an official way to get one? Part B: Assuming A is possible, how can I ensure that the UUID is unique across iOS and Android devices? Looking at the quote above it seems up to the developer. However it feels like a non robust

iBeacon background scanning PRO feature of RadiusNetworks library?

谁说胖子不能爱 提交于 2019-12-11 08:49:26
问题 I am using the RadiusNetworks API to work with iBeacons. I have made use of this library and it works fine, however i would have to ask what i am doing wrong that the background scanning does not happen in my application? What am I missing? Here's the implementation i have so far, i only kept the code relevant to the beacon side, however setting the activity to background stops the scanning completely... package ro.gebs.zonizbeacon; public class MainActivity extends FragmentActivity

Getting packet data transferred from iBeacon android

此生再无相见时 提交于 2019-12-11 06:01:47
问题 I have the below code used for transmitting iBeacon from an Android app. Beacon beacon = new Beacon.Builder() .setId1("6fb0e0e9-2ae6-49d3-bba3-3cb7698c77e2") .setId2(Integer.toString(minor1)) .setId3(Integer.toString(minor2)) .setManufacturer(0x0000) .setTxPower(-59) .setDataFields(Arrays.asList(new Long[] {0l})) .build(); BeaconParser beaconParser = new BeaconParser() .setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"); BeaconTransmitter beaconTransmitter = new BeaconTransmitter

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

Error code 2 in beacon transmitter for Android Beacon library

眉间皱痕 提交于 2019-12-10 22:24:14
问题 I want to send a BLE advertisement using Android beacon library. Below is the code I am using for it. package com.example.beacon_emitter; import java.util.Arrays; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconParser; import org.altbeacon.beacon.BeaconTransmitter; import android.support.v7.app.ActionBarActivity; import android.app.Activity; import android.bluetooth.le.AdvertiseCallback; import android.bluetooth.le.AdvertiseSettings; import android.os.Bundle; import