I use the QRScanner from the downloaded and imported extensions-lib ... QRScanner.cn1lib
There is a popup on the android device... coursed by the method scanCanceled ... but i've no idea why...
try {
QRScanner.scanBarCode(new ScanResult() {
public void scanCompleted(String contents, String formatName, byte[] rawBytes) {
((TextField) view.getComponentById(MfbView.COMPONENT_HU_NUMBER)).setText(contents);
}
public void scanCanceled() {
Dialog.show("Cancelled", "Scan Cancelled", "OK", null);
}
public void scanError(int errorCode, String message) {
Dialog.show("Error", message, "OK", null);
}
});
} catch (Exception e) {
e.printStackTrace();
}