 
	
You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
Dynastream Developer
Dynastream Developer
Dynastream Developer
Dynastream Developer
blackramlabs.com
textView_mainSoftwareRevision.setText(String.valueOf(mainSoftwareRevision));
if (supplementalSoftwareRevision == -2)
    // Plugin Service installed does not support supplemental revision
    textView_supplementalSoftwareRevision.setText("?");
else if (supplementalSoftwareRevision == 0xFF)
    // Invalid supplemental revision
    textView_supplementalSoftwareRevision.setText("");
else
    // Valid supplemental revision
    textView_supplementalSoftwareRevision.setText(", " + String.valueOf(supplementalSoftwareRevision)); 
Dynastream Developer
@Override
  public void onNewProductInformation(long estTimestamp, EnumSet<EventFlag> eventFlags,
    int mainSoftwareRevision, int supplementalSoftwareRevision, long serialNumber) {
   // Build up the firmware version from main and supplemental revision numbers.
   StringBuilder softwareRevision =
     new StringBuilder(Integer.toString(mainSoftwareRevision));
   if((supplementalSoftwareRevision >= 0) 
     && (supplementalSoftwareRevision < 0xFF)) {
    // Append the supplemental version number
    softwareRevision.append('.');
    softwareRevision.append(Integer.toString(supplementalSoftwareRevision));
   }
   AntPlusSensor.this.updateSoftwareRevision(softwareRevision.toString());
   AntPlusSensor.this.updateSerialNumber(serialNumber);
  } 
blackramlabs.com
Dynastream Developer