ibeacon-android

How can i get exact distance in feets from the beacon, using roximity sdk?

两盒软妹~` 提交于 2020-02-06 03:56:04
问题 I am using Roximity SDK and it gives beacons range update but only with three points Far, Near and Immediate, while i want to get their distance in feets, any idea how can i get this ? Here's the code i have used according to roximity SDK docs. private void createBroadcastRecievers(){ IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(ROXConsts.MESSAGE_FIRED); intentFilter.addAction(ROXConsts.BEACON_RANGE_UPDATE); intentFilter.addAction(ROXConsts.WEBHOOK_POSTED);

cannot find symbol class NotificationManagerCompat

扶醉桌前 提交于 2020-01-25 21:31:23
问题 I am trying to build a notification method that would result in a notification appearing on the locked screen when a particular beacon is detected. My understanding is that I need to include .setVisibility(0) in the following code: public void showNotification(Beacon beacon) { Resources r = getResources(); int random = (int)System.currentTimeMillis(); Notification notification = new NotificationCompat.Builder(this) .setSmallIcon(android.R.drawable.ic_popup_reminder) .setContentTitle("Beacons

cannot find symbol class NotificationManagerCompat

拈花ヽ惹草 提交于 2020-01-25 21:30:08
问题 I am trying to build a notification method that would result in a notification appearing on the locked screen when a particular beacon is detected. My understanding is that I need to include .setVisibility(0) in the following code: public void showNotification(Beacon beacon) { Resources r = getResources(); int random = (int)System.currentTimeMillis(); Notification notification = new NotificationCompat.Builder(this) .setSmallIcon(android.R.drawable.ic_popup_reminder) .setContentTitle("Beacons

How to get beacon receive new configuration

跟風遠走 提交于 2020-01-17 02:43:25
问题 I have the estimate beacon and I can change uuid from their iOS app but from what i read beacon use BLE tec. and it made to send only advertisement data so how does it receive the new configuration. thanks 回答1: It is true that iBeacons only advertise data, however vendors, such as Estimote, can support additional BLE functionality to allow functionality such as configuration. This is outside of the iBeacon specification and so each vendor will have their own services and chracteristics for

Error while trying to build library locally and binding to project: Error:Configuration with name 'default' not found

扶醉桌前 提交于 2020-01-06 16:18:37
问题 I have been trying to link the local copy of Android Beacon Library on my computer with my project on Android Studio and I have tried several methods described in this thread How do I add a library project to the Android Studio? No matter what method I use, I keep getting the error stated in the title. Some threads on Stack Overflow suggest that this is due to submodules within the library and that it could be fixed with "git submodule update --init" but that didn't do anything for me. As I

Does the Advertisement Rate of a beacon affect battery of a detector application

别说谁变了你拦得住时间么 提交于 2020-01-06 15:59:53
问题 I was trying to test battery consumption caused by Android and IOS beacon detector application for different beacon protocols and advertisement rates. My question is that will the advertisement rate of beacons in anyway affect the battery consumption of detector applications? These applications scan for a fixed amount of time and after a fixed interval, will different advertisement rates have any effect? Thanks 回答1: Yes, in most cases an app that detects more beacons will use somewhat more

BLE Scanning: callback gets invoked only once on “Huawei Ascend Mate2 Phone”

对着背影说爱祢 提交于 2020-01-06 15:46:45
问题 I have a working BLE scanning app that has been working fine for last few months on Nexus 5 (on various API versions from 4.4 to 6.0 ). Today we ran the app on different device "Huawei Ascend Mate2" that has API 22 and found what I thought was an interesting or peculiar behavior: callback gets fired continuously (about thrice a second), but my iBeacon is detected in only one callback and in remaining callbacks it picks other devices in the house (like netgear router and roku etc; I donot know

Is possible to use NearBy API with out Proximity API?

久未见 提交于 2020-01-06 11:02:55
问题 I'm using a beacon that can work either with iBeacon or Eddystone, I create a scanner that has a service in the background which scans each 10 secs for beacons, similar to the android-beacon-library, but I was thinking that I could use the NearBy API to get the beacons with out the scan service, Is that possible?, I don't want to use the ProximityAPI to register the beacons because these beacons will be out there with out the need to register them. 回答1: In order to use the Nearby API, your

Auto launch an activity when beacon comes in a certain distance

不想你离开。 提交于 2020-01-03 04:59:05
问题 I want my application to auto launch an activity when beacon comes within a certain distance (in my case it is 1 meter) My activity gets launched when i plug in or plug off the charger and when i boot the device but it didn't get auto launch when i closed the application and beacon is in 1 meter. what i want is if beacon is in 1 meter then activity should launch by itself. I am using android beacon library and following the same steps mentioned on https://altbeacon.github.io/android-beacon

Beacons not detected in Android service

一笑奈何 提交于 2020-01-03 04:25:13
问题 I'm using the Altbeacon library (stable release 2.1.4) to detect beacons. If I do it in an Activity, I have no problems detecting them. However I can't get this to work from a service. Here's what I've got: package com.ibeacontest.android; import java.util.Collection; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org.altbeacon.beacon.BeaconManager; import org.altbeacon.beacon.BeaconParser; import org.altbeacon.beacon.Identifier; import org.altbeacon