I'm consuming Zebra's barcode_scanner_library_v2.6.6.0-release.aar for Android and setting CS4070's LED. But when I pass RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON it turns on Amber LED on the scanner and when I pass RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON it turns on Red LED on the scanner. So I wanted clarification whether is this intended behavior. If yes, then what is the reason behind this.
Note: I have only CS4070 so can't confirm if this behavior is same on other models too.
2 Replies
This behavior is indeed only with CS4070 . you can use the scanner name to Trigger other LED for RED , something like below
public void otherLEDOnClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON);
}
}
public void otherLEDOffClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_OFF);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_OFF);
}
}
public void redLEDOnClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_ON);
}else{
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_ON);
}
}
public void redLEDOffClicked(View view) {
if(scannerName.startsWith(SCANNER_MODEL_CS4070)){
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_OTHER_OFF);
}else {
prepareInXML(RMDAttributes.RMD_ATTR_VALUE_ACTION_LED_RED_OFF);
}
}
}
Yeah I had thought of this workaround but I wasn't sure whether this was only specific to CS4070 or other models too. Thanks for the clarification.