zxingsimplify

a google zxing simplify library

License

License

Categories

Categories

ZXing Data Data Formats Image Processing
GroupId

GroupId

com.github.shenyuanqing.zxing
ArtifactId

ArtifactId

zxingsimplify
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

zxingsimplify
a google zxing simplify library
Project URL

Project URL

https://github.com/shenyuanqing/ZxingSimplify
Source Code Management

Source Code Management

https://github.com/shenyuanqing/ZxingSimplify

Download zxingsimplify

Filename Size
zxingsimplify-1.0.1.pom -1 bytes
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.shenyuanqing.zxing/zxingsimplify/ -->
<dependency>
    <groupId>com.github.shenyuanqing.zxing</groupId>
    <artifactId>zxingsimplify</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.shenyuanqing.zxing/zxingsimplify/
implementation 'com.github.shenyuanqing.zxing:zxingsimplify:1.0.1'
// https://jarcasting.com/artifacts/com.github.shenyuanqing.zxing/zxingsimplify/
implementation ("com.github.shenyuanqing.zxing:zxingsimplify:1.0.1")
'com.github.shenyuanqing.zxing:zxingsimplify:aar:1.0.1'
<dependency org="com.github.shenyuanqing.zxing" name="zxingsimplify" rev="1.0.1">
  <artifact name="zxingsimplify" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.shenyuanqing.zxing', module='zxingsimplify', version='1.0.1')
)
libraryDependencies += "com.github.shenyuanqing.zxing" % "zxingsimplify" % "1.0.1"
[com.github.shenyuanqing.zxing/zxingsimplify "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 25.3.1
com.google.zxing : core jar 3.3.0

Project Modules

There are no modules declared in this project.

ZxingSimplify

一个精简的安卓Zxing扫码库。(A Zxing simplify library for Android)

去除了ViewfinderView,使用XML布局。

ZxingSimplify ZxingSimplify

Gradle

dependencies {
    compile 'com.github.shenyuanqing.zxing:zxing-simplify:1.0.5'
}

Usage

Android 6.0以上在跳转到扫码页之前先取得运行时权限,具体参考MainActivity。

    /**
     * 跳转到扫码页
     */
    private void jumpScanPage() {
        startActivityForResult(new Intent(MainActivity.this, CaptureActivity.class),REQUEST_SCAN);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if(requestCode == REQUEST_SCAN && resultCode == RESULT_OK) {
            Toast.makeText(mContext,data.getStringExtra("barCode"),Toast.LENGTH_LONG).show();
        }
    }

Changelog

  • 1.0.5

    • 增加从相册选取二维码识别功能
    • 增加开关闪光灯功能
  • 1.0.4

    • 增加扫描二维码、条码等功能

Versions

Version
1.0.1
1.0.0