title: Trying to use Zxing QR code reader API results in force close
body: <p>I have integrated the Zxing API and use this code:</p>
  
  <pre><code>Intent data = new Intent("com.google.zxing.client.android.SCAN");
  </code></pre>
  
  <p>And getting the result with this code:</p>
  
  <pre><code>String contents = data.getStringExtra("SCAN_RESULT");
  String format = data.getStringExtra("SCAN_RESULT_FORMAT");
  </code></pre>
  
  <p>But when I run this code, the app will ask to force close.</p>