title: barcodereader sample application
body: <p>I am using the barcodereader sample application provided in the cascades samples to embed a QRCode scanner into my application.</p>
  
  <p>As it stands the sample is great, but I want the scanner to open as soon as the user navigates to my screen and I want to get rid of the opening slider images that are in the sample.</p>
  
  <p>Firstly, I have tried removing the images and their animations and adding the action:</p>
  
  <pre><code>onCreationCompleted: {
      camera.open()
  }
  </code></pre>
  
  <p>to the Page.  This opens the camera perfectly as expected, but for some reason, the bacrode just doesn't scan.</p>
  
  <p>So, I wound back a step, and this time I just put the code in exactly as is and just changed the code to read:</p>
  
  <pre><code>onCreationCompleted: {
      startupAnimation.play()
  }
  </code></pre>
  
  <p>As expected, the screen open, plays the annimation, but still it fails to read barcodes, however, if I invoke the animation again (by tapping the screen), the animation plays again and the scanner reads the barcode without any issues at all.</p>
  
  <p>All I can think of is that this is a timing issue and that I need some sort of delay after the screen has been created before the camera can be started as a barcode reader?</p>
  
  <p>Anyone able to help?</p>
  
  <p>Thanks,</p>
  
  <p>Douglas</p>