问题标签 [ibeacon-android]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ibeacon-android - 无法绑定到 Radius Networks Android IBeacon 服务
因此,我刚刚构建并演示了免费的 Radius Networks IBeacon Android 库。完美地为我工作。
我刚刚将代码移植到我自己的应用程序并更新了以下内容:
- 更新清单以指定 BLUETOOTH 和 BLUETOOTH_ADMIN 权限
- 我有一个 FragmentActivity 实现 IBeaconConsumer(覆盖 onIBeaconServiceConnect)
- 我的 Android 项目引用了 Radius Networks 的 AndroidIBeaconLibrary 项目
- 我的项目构建目标是来自 G&D,Android API Level 18 的 OpenMobile API(带有服务层)
在我的应用程序中,我从来没有通过 IBeacon 消费者获得回调。这是为什么呢?
IBeacon 库中是否有某种保护机制围绕其他应用程序绑定到服务。即相同的包名等?
谢谢。
ibeacon-android - 检测ibeacon的时间:背景时间和前台时间
在检测 ibeacon 中,为什么我们应该在背景和前景中检测它们。我们应该在后台和前台做什么。和时间去做。
android - Android Studio - Estimote SDK - 找不到类
我正在使用 Estimote Android SDK 和 Android Studio 构建一个应用程序。我已将 estimote-sdk-preview.jar 添加到我的libs
文件夹中,并且 IDE 可以识别它(我的任何 .java 文件中都没有错误)但是当它上传到我的 HTC One 时,我在 logcat 中收到以下错误,我得到了我手机上的“抱歉这个应用程序崩溃了”消息:
我试图去项目结构并通过它添加库,在我的 gradle 属性中我有:
这是我的 .java 文件的开头:
所以我很困惑,有人可以帮助我吗?
android - 基于 RadiusNetwork Android 库的 iBeaconGap Cordova 插件
我正在尝试使用以下iBeaconGap cordova 插件,它是 RadiusNetworks Android iBeacons 库的包装器。我的手机已准备好 LE 蓝牙,并使用 Play 商店中的 RadiusNetwork Detector 应用程序检测我的信标。
但是将它添加到我的普通科尔多瓦项目会导致以下日志消息:“尝试通过意图回调:ComponentInfo{com.tecalliance.lucidbeacon/com.radiusnetworks.ibeacon.IBeaconIntentProcessor}”。看起来它的起源是 RadiusNetworks 的Callback.java类。
插件安装程序已正确更新 AndroidManifest.xml 文件:
和
我使用 github 上建议的插件,但 gotBeacons() 和 failedGettingBeacons() 都没有被调用。
知道如何解决这个问题吗?提前致谢 ;-)
android - 获取 iBeacon UUID Radius 网络库
我已经下载了 Radius Networks iBeacon Android 库的非专业版,并且我已经从他们的站点运行了示例代码,并且一切正常。但是,我不想创建一个新区域,而是希望能够获取 ibeacon 数据——uuid、major、minor 等......
所以我下载了 github 库并查看了它,但是目前我无法从我的信标获取数据广播......我已将 iBeaconService 绑定到我的活动,我不确定从这里去哪里...... .如果有人可以帮助我将不胜感激..
android - 如何在不使用任何库的情况下检测 android 中的 IBeacon
我是 Ibeacon 的新手,我想知道我们能否在不使用任何 SDKLibrary 或库的情况下在 android 中检测 Ibeacon,任何人都可以给出示例。
我知道一些像 Radius Networks 这样的图书馆。但我不想使用任何图书馆
android - Android IBeaconManager 未从活动连接
我在 android 上使用来自 radius 网络的 IBeacon SDK。我目前在一项活动和一项服务中使用 IBeaconManager。当应用程序第一次启动时,Activity 会绑定它的 iBeaconManager 对象,但onIBeaconServiceConnect
永远不会被调用。调用任何测距或监控函数startRangingBeaconsInRegion(region)
都会抛出 RemoteException:
出人意料的是,iBeaconMananger.isBound(myActivity)
正在回归真实。
现在,当我启动我的服务(从我的活动解除绑定并绑定到我的服务)时,绑定工作正常,我可以开始监视信标。如果那时,我再次打开活动(从我的服务解除绑定并绑定到我的活动之后),它现在也可以在我的活动中使用。
因此,只有在应用程序首次启动时,onIBeaconServiceConnect()
才不会为我的 Activity 调用。
任何帮助是极大的赞赏。
更新
MyActivity
(BaseActivity
是 的子类Activity
):
android - Android IBeacon Library: How to not directly use an activity
The premise is I am writing a library that in itself uses and implements the IBeacon SDK. My code has to implement that SDK, does things and if someone uses my library they dont have to interact with this SDK at all, so I'm making a higher level codebase you could say.
Now my code cannot use any activities by itself, its just a library, another user will then implements my code. So my code needs to consume the IBeacon events and do something with it without being an activity by itself.
So I would implement IBeaconConsumer myself and then the person using my library would just give me an activity / context and I would pass it to the IBeacon SDK.
Doing so results in the following problem (with proper mainfest code):
The activity binds its iBeaconManager object however onIBeaconServiceConnect never gets called. See this stackoverflow question: Android IBeaconManager not connecting from activity
My vague assumption is this: the class implementing IBeaconConsumer is not an activity and its not the same class as the one I am binding the IBeacon service to and that might create the problem. Its just very hard to debug since it all works, no errors, just no ibeacon activity - same behavior as if you forget to add the part in the manifest
android - onIBeaconServiceConnect() 没有在 android 中被调用
我正在使用 radiusnetworks 发布的 AndroidIbeacon 库,并且能够成功运行他们的演示应用程序。但是当我将它添加到我的应用程序时,不会调用 onIBeaconServiceConnect() 方法。
在我的代码下面,
请帮我解决这个问题。谢谢
android - 信标扫描不一致
我正在使用半径网络 iBeacon Api。我每秒钟在后台模式下扫描信标。我有两个信标。有时扫描信标并不一致。我该如何解决这个问题?
假设有两个信标
最初的间隔扫描
发现信标 1、信标 2
在第二次间隔扫描
只有 Beacon 1 或 Beacon 2 来了
第三次间隔扫描
找到信标 1 和信标 2
在第四个区间
再次单灯塔来了..
像这样我得到