What needs to be added to the android manifest file for the zxing barcode scanner?

后端 未结 2 1845
迷失自我
迷失自我 2021-01-28 16:07

I have used Intent to integrate the zxing barcode scanner into my application but i am lost on what needs to be in the manifest. As of right now when i click on the button to la

2条回答
  •  臣服心动
    2021-01-28 16:46

    Do you want to call the installed Barcode Scanner app? I did the same a week ago.

    Here's my code:

    Intent intent = new Intent("com.google.zxing.client.android.SCAN");
    intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
    startActivityForResult(intent, 0);
    

    AndroidManifest.xml

    
    
        
            
                
                    
                    
                
            
    
        
    
    
    
    

    Hope this helps.

提交回复
热议问题