Mohit Verma
Mohit Verma

Reputation: 3025

Where the package name should be changed while using zxing library in my own project

The package name of my project is com.mohit.verma I do not want to install the zxing bar code scanner app externally. I just want to use the library files. So where should I change the package names? Any help would be appreciated... My Code is as below:

 barCodeScanner.setOnClickListener(new OnClickListener() {

                @Override
                public void onClick(View v) {
                    // TODO Auto-generated method stub
                    intent = new Intent("com.google.zxing.client.android.SCAN");
                    intent.setPackage("com.google.zxing.client.android");
                   // intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
                    //intent.putExtra("com.google.zxing.client.android.SCAN.SCAN_MODE", "QR_CODE_MODE");
                    startActivityForResult(intent,0);
                }
            });

Upvotes: 4

Views: 586

Answers (1)

Walter K
Walter K

Reputation: 1471

setPackage() is optional. Plenty of SO code and links from April and March.

Upvotes: 2

Related Questions