How to use zxing qrcode-reader API
<p>Hi everyone I'm new to android I'm doing on some project that needs scanning qr codes using mobile(Android OS)<br>
I have tried a lot to do it. I have already integrated 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 close by force.
please help </p>
