How can I change major or minor from the Android device?

How can I change major or minor from the Android device?

my estimote beacon version is A3.0.1

The following code after a successful value has not been minor changes.

private BeaconConnection connection;

connection.writeMinor(minor, new BeaconConnection.WriteCallback() {
  @Override public void onSuccess() {
    runOnUiThread(new Runnable() {
      @Override public void run() {
        showToast("Minor value updated");
      }
    });
  }

  @Override public void onError() {
    runOnUiThread(new Runnable() {
      @Override public void run() {
        showToast("Minor not updated");
      }
    });
  }
});

You should be getting an onAuthenticationError event on your BeaconConnection.ConnectionCallback (the one you specify as the third parameter in the BeaconConnection’s constructor). That’s because our current Android SDK is incompatible with SDK 3.0.1—we’re working on an update that will change that, it should be out this or next week.

Please do use Android Estimote SDK 0.5 to do that if you are using firmware 3.0.1.

Note that you need first to connect to device.

connection = new BeaconConnection(context, beacon, callback);
connection.authenticate()

See also example of that in SDK demos.