Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is it possible to implement barcode and qr code scanner in a single button. i have created 2 button one for barcode and other for qr code. now i want a single button that can do the job. please help..
Posted
Comments
Rahul Ramakrishnan 1-Jun-15 7:51am    
will this work?
Intent intent = new Intent(ACTION_SCAN);

intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intent, 0);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900