How to make integrated Barcode Scanner Android working properly
<p>I currently develop a bookmarking application. So I used the zxing project to scan the ISBN, however I don't know why after integrating the scanner it seems not working well. Sometimes, it catch well the barcode, but when I repeat it takes long time and gets wrong number. It seems odd to compare with this app <a href="https://play.google.com/store/apps/details?id=com.mobiloucos.bookmark&amp;feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tb2JpbG91Y29zLmJvb2ttYXJrIl0." rel="nofollow">Reading Progress</a>. The application also request user to download an external Barcode Scanner from xzing, and it works very well. So did I integrate the Barcode Scanner in wrong way (Im not using zxing as a lib). </p>

<p>This is my code:</p>

<pre><code>    public void scan(View view) {
        Intent intent = new Intent("com.google.zxing.client.android.SCAN");
        intent.putExtra("SCAN_MODE", "ISBN");
        startActivityForResult(intent, 0);
    }

    public void onActivityResult(int requestCode, int resultCode, Intent intent) {
        if (requestCode == 0) {
            if (resultCode == RESULT_OK) {
                String isbn = intent.getStringExtra("SCAN_RESULT");

                Intent i = new Intent(MainActivity.this, ResultActivity.class);

                i.putExtra("isbn", isbn);
                startActivity(i);

            } else if (resultCode == RESULT_CANCELED) {
                Toast.makeText(this, "You messed up", Toast.LENGTH_SHORT).show();
            }
        }
    }
</code></pre>

<p>I used the mode "QR_CODE_MODE" but it even doesn't work at all so I change to ISBN mode</p>
