开发者

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_开发者_如何学CCODE_MODE");
                    startActivityForResult(intent,0);
                }
            });


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜