0

https://github.com/RadiusNetworks/bluetooth-crash-resolverに記載されている手順に従おうとしましたが、成功しませんでした。BluetoothパッケージからBluetoothCrashResolver.javaファイルをコピーしてコードベース(src/main/myProject)に貼り付け、MainActivityで次のように使用しようとしました(コードaltbeaconサイトの範囲の例です)。

public class RangingActivity extends Activity implements BeaconConsumer {
    protected static final String TAG = "RAAAAAAAAAAAAANNNNNNNNGGGGEEEEE";
    private BeaconManager beaconManager;
    private BlutoothCrashResolver bluetoothCrashResolver=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ranging);
        bluetoothCrashResolver = new BlutoothCrashResolver(this.getApplicationContext());
        bluetoothCrashResolver.start();
  1. 最初に表示されるエラーは、BlutoothCrashResolver解決できないということです。つまり、インポートが正しくないことを意味しimport com.project.package.BluetoothCrashResolver;ます。上部にインポート ステートメント ( ) もありましたが、機能しませんでした。

  2. どういうわけかそれを機能させる場合、このステートメントをどこに置くべきですか

    bluetoothCrashResolver.notifyScannedDevice(デバイス、myLeScanCallback);

  3. そして最後に、なぜビーコンRangingでそれが起こっているのでしょうか? 監視コードは私にとってはうまくいきました。それは私のデバイス(LG Tab 7)に固有のものですか、それとも一般的なものですか(最新の altbeacon arr ファイルの両方を試しました)。

@davidyoungに特に注意してください。このトピックに関するいくつかの反省は、非常に高く評価されます。

4

1 に答える 1