Actually i use Output Intent
from DataWedge
to send decoded data to my application, so in the application there is recorded a BroadcastReceiver which get the decoded data
private BroadcastReceiver myBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (Objects.equals(action, getResources().getString(R.string.activity_intent_filter_action))) {
// Received a barcode scan
try {
displayScanResult(intent);
} catch (Exception e) {
// Catch if the UI does not exist when we receive the broadcast
}
}
}
};
The question is is it possible in some way disable the scanner without using EMDK? I would be able to disable the scanne if the following condition is true:
if(Alerts.dialogError != null && Alerts.dialogError.isShowing()){
// Here i should block the scanner
}