Note that there are some explanatory texts on larger screens.

plurals
  1. POQR code screen popup issue with BlackBerry os 6
    primarykey
    data
    text
    <p>I am trying to scan QR code with my code. My code is running fine with 5.0(Bold) and 7.1(Torch) OS phones. It is running fine with 7.1 and 5.0. but giving problem while running with 6.0 OS(Bold 9700). The problem is - "While trying to scan QR code, app scans the QR code but camera screen doesn't pop and it remains at the front. Event it is not able to hide by using Esc key". please help me to resolve the issue with os6.</p> <p><strong>Edit:</strong></p> <p>Code while opening camera screen for QR code scan:</p> <pre><code> Hashtable hints = new Hashtable(); // The first thing going in is a list of formats. We could look for // more than one at a time, but it's much slower. Vector formats = new Vector(); formats.addElement(BarcodeFormat.QR_CODE); hints.put(DecodeHintType.POSSIBLE_FORMATS, formats); // We will also use the "TRY_HARDER" flag to make sure we get an // accurate scan hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE); // We create a new decoder using those hints BarcodeDecoder decoder = new BarcodeDecoder(hints); // Finally we can create the actual scanner with a decoder and a // listener that will handle the data stored in the QR code. We put // that in our view screen to handle the display. try { _scanner = new BarcodeScanner(decoder, new LeadQRcodeDecoderListener()); _QRcodeScreen = new LeadQRcodeScannerViewScreen(_scanner); // If we get here, all the QR code scanning infrastructure should be set // up, so all we have to do is start the scan and display the viewfinder _scanner.startScan(); UiApplication.getUiApplication().pushScreen(_QRcodeScreen); } catch (Exception e) { e.printStackTrace(); return; } </code></pre> <p>code for closing screen is: </p> <pre class="lang-java prettyprint-override"><code>UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { UiApplication.getUiApplication().popScreen(_QRcodeScreen); } }); </code></pre> <p>I am calling this code after scanning of QR code.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload