Can not scan Barcode128 from App

7 views
Skip to first unread message

Tobias Semmet

unread,
Mar 20, 2020, 8:37:02 AM3/20/20
to CodenameOne Discussions
Hi,

I can not scan a barcode-128 from the App.

If i use the scan software (Barcode Scanner + Simple) direct from the keyboard input, everything works fine. The scan software alone works also fine. (and scan the barcode directly, without any problems).


If the user click on the textfield i start the CodeScannerInstance like ...

if (CodeScanner.getInstance() != null) {

CodeScanner.getInstance().scanBarCode(new ScanResult() {

public void scanCompleted(String contents, String formatName, byte[] rawBytes) {

huTf.get(hu).setText(contents);
huTf.get(hu).getParent().revalidate();

if (hu < 9) {
int nextHu = hu + 1;

}

}

public void scanCanceled() {
System.out.println("cancelled");
}

public void scanError(int errorCode, String message) {

Dialog.show("Scann Fehler", message, "OK", null);

}
});
} else {
Dialog.show("barcodeScanner nicht gefunden", "barcodeScanner nicht gefunden", "OK", null);
}
}

the scan software starts but i can not scan the barcode.

other kind of barcodes works fine also by using the app functinality show above.

Thanks for helping
Tobias

If you are experiencing an issue please mention the full platform your issue applies to:
IDE: Eclipse
Win 10
Simulator
Device Android

Shai Almog

unread,
Mar 21, 2020, 1:27:39 AM3/21/20
to CodenameOne Discussions
Reply all
Reply to author
Forward
0 new messages