【问题标题】:Certain Estimote Beacons did not get detected未检测到某些 Estimote 信标
【发布时间】:2015-04-20 13:13:48
【问题描述】:

我的一些 Estimote 信标在 Android 软件版本 4.3 的 Android 手机中没有被检测到。其他 Android 设备(4.4.2 版、4.4.4 版和 5 版)检测到相同的信标,但 4.3 版的设备检测不到。我正在使用不带过滤器的 DemoApp 在 4.3 版中测试相同的场景。一些信标被检测到,但不是全部。

我还检查了 demoApp 中的 AndroidManitest.xml。它有 android:minSdkVersion="18" 安卓:targetSdkVersion="18"。

这是 Android 版本 4.3。 // 我的手机 HUAWEI G6-U10 型号有 Android 4.3 并且有蓝牙 LowEnergy。但是一些信标失败了

某些信标在此列表中被忽略列出信标

  @Override
  public void onBeaconsDiscovered(Region region, final List<Beacon> beacons) {
    // Note that results are not delivered on UI thread.
    runOnUiThread(new Runnable() {
      @Override
      public void run() {
        // Note that beacons reported here are already sorted by estimated
        // distance between device and beacon.
        getActionBar().setSubtitle("Found beacons: " + beacons.size());
        adapter.replaceWith(beacons);
      }
    });
  }

【问题讨论】:

  • 你用的是什么手机?
  • 我的手机 HUAWEI G6-U10 型号是 Android 4.3 并且有蓝牙 LowEnergy。但是一些信标失败了
  • 请在这里查看一些提示stackoverflow.com/a/29643717/2401535

标签: android bluetooth-lowenergy ibeacon ibeacon-android estimote


【解决方案1】:

随着新 Estimote SDK 版本 0.5 的发布,问题得到解决。 如果您最近升级了 Estimote Beacon 固件,就会出现问题。

您必须按照 GitHub 中的说明将 .aar 文件复制到库中。

在你的 build.gradle 文件中

                repositories {
                mavenLocal()
                flatDir {
                dirs '../libraries'
                }
                mavenCentral()
                }



                dependencies {
                compile(name: 'estimote-sdk-preview', ext: 'aar')
                }

覆盖 Android-Manifest.xml 以使最小 Android SDK 小于 18。

            <manifest xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:tools="http://schemas.android.com/tools"
            package="<<your.package.here>>">
            <uses-sdk tools:overrideLibrary="com.estimote.sdk"/>

用以下行替换您之前的日志记录工具

            EstimoteSDK.enableDebugLogging(true);

P.S:如果觉得有帮助,请点赞

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-12
    相关资源
    最近更新 更多