Dspread Assistant

How can I help you with Dspread documentation today?

Welcome to the Dspread Documentation! 👋
Android Terminals
Scanner QR/Bar Code

☄️ Scanner QR/Bar Code

Currently we provide the QR/Bar code payment function in the form of a service for customers to use. You can call the following method to start the code scanning service.

Intent intent = new Intent();
ComponentName comp = new ComponentName("com.dspread.components.scan.service", "com.dspread.components.scan.service.ScanActivity");
 
intent.putExtra("amount", "CHARGE ¥1");
intent.setComponent(comp);
launcher.launch(intent);