Integration problem ZXing via Intent

by Gustavo Costa » Thu, 19 May 2011 20:01:43 GMT

Sponsored Links
 Well, I'm trying implement a integration of zxing with my Android App.
In my app there is a MainActivity. In this MainActivity, I use a
button to execute the first block of code below. But every time when
execute the first block of code and the app read the QR Code, I
receive as resultCode the value RESULT_CANCELED in the second block.
The second block is executed as soon as the ZXing Activity is opened.
What do I doing wrong?

First Block of Code

Intent intent1 = new Intent("");
    intent1.putExtra("SCAN_MODE", "ONE_D_MODE");
    startActivityForResult(intent1, 0);

Second block of code

public void onActivityResult2(int requestCode, int resultCode, Intent
intent2) {
    if (requestCode == 0) {
        if (resultCode == RESULT_OK) {
            String contents2 = intent2.getStringExtra("SCAN_RESULT");
            String format2 =
            EditText assetMon1 = (EditText)
        } else if (resultCode == RESULT_CANCELED) {
            // Every time I receive this code


Other Threads

1. Good Anroid Developer

Dear All,

I am looking for a developer with good knowledge of Android Framework and an
excellent knowledge of Java for a one time quick paid job.

Please reply to [EMAIL PROTECTED] for further details.

Best Regards,
Paul Tabone


2. MSM 7x00


I hope this hasn't been asked before (if was, sorry), but according to and some video footage (BBC interview), Android seems
to prefer Qualcomm's MSM 7x00 chipsets (especially the MSM 7200).
Some people have got issues whith this particular chipset (missing
drivers, bugs, overspecced,...), and I won't hide it, I've got my
share as well...
My question is (if it can be answered), will Android have issues whith
the chipset mentioned above?


3. Back-porting from m5 to m3

4. Javascript runtime

5. About "setting account for GTalk "

6. error with getTextContent()

7. how to detect longpress on touchscreen?