二维码扫描 1.0 Apk
Rate saved, Thank!
4.3 (1 votes)
Description of 二维码扫描
Simple two-dimensional code scanning tool
Open to allow other programs to call. The following is the call notes.
Developer Documentation:
// Parameters and results
mark.qrcode.SCAN // action
mark.qrcode // package
mark.qrcode.CaptureActivity // class
getStringExtra ( "data") // result
Example:
// Start the scan code
Intent intent = new Intent ( "mark.qrcode.SCAN");
intent.setClassName ( "mark.qrcode", "mark.qrcode.CaptureActivity");
try {activity.startActivityForResult (intent, 0);} catch (Exception ignored) {}
// Get the scan code results
@Override
protected void onActivityResult (int requestCode, int resultCode,
Intent intent) {
if (requestCode == 0) {
if (intent! = null && intent.hatra ( "data")) {
String result = intent.getStringExtra ( "data"); // scan code results
}
return;
}
}