Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackberry error _camConfigHandle is invalid
    primarykey
    data
    text
    <p>I am making the qr-code reader app,on button click i have opened the camera view. Then depend on their result it will navigate to next screen but second time when i open the screen it gives me the error <strong>CamController:get res failed: _camConfigHandle is invalid</strong>.</p> <p>EDITED: I have try this code for remove the scanner and move to next screen</p> <pre><code> UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { try { _scanner.getPlayer().stop(); } catch (MediaException e) { e.printStackTrace(); } _scanner.getPlayer().close(); System.out.println("closeScan"); _scanner.getPlayer().deallocate(); System.out.println("deallocateScan"); System.out.println("deleteAllScan"); UiApplication.getUiApplication().popScreen(_barcodeScreen); } }); </code></pre> <p>and this is my code to scan</p> <pre><code> private void scanBarcode() { if (_barcodeScreen == null) { Hashtable hints = new Hashtable(); Vector formats = new Vector(); formats.addElement(BarcodeFormat.QR_CODE); hints.put(DecodeHintType.POSSIBLE_FORMATS, formats); hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE); BarcodeDecoder decoder = new BarcodeDecoder(hints); try { _scanner = new BarcodeScanner(decoder, new MyBarcodeDecoderListener()); _barcodeScreen = new MyBarcodeScannerViewScreen(_scanner); } catch (Exception e) { System.out.println("error="+e.toString()); return; } } try { _scanner.startScan(); UiApplication.getUiApplication().pushScreen(_barcodeScreen); } catch (Exception e) { System.out.println("error1="+e.toString()); } } </code></pre> <p>Thanks in Advance.</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