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...

 snippet :

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();
}

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/99382d06-c8b8-4c66-8155-1b234090be7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to