某些Estimote Beacons未被检测到

时间:2015-04-20 13:13:49

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

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

我还检查了demoApp中的AndroidManitest.xml。它有android:minSdkVersion =“18” 机器人:targetSdkVersion = “18”。

这是Android版本4.3。 //我的手机HUAWEI G6-U10型号采用Android 4.3,并具有BlueTooth 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);
      }
    });
  }

1 个答案:

答案 0 :(得分: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:如果你觉得这很有用,请投票。