Details

二维码扫描

4.8 (6)

Tools | 115.0KB

Description

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.hasExtra ( "data")) {
            String result = intent.getStringExtra ( "data"); // scan code results
        }
        return;
    }
}

Information

Update:

Version: 1.0

Requires: Android2.2 or later

Rate

Share by

User also download

You may also like