Android – PDF417 Camera Scanner & Web Parser

Scanner & Web Parser SDK – Download

Implementation Instructions Using Android Studio

*all code snippets can be seen in the example project included in the SDK download

To only integrate the scanner component, ignore step 2. To only integrate the web API component, ignore step 1.

1. With your project open in Android Studio, go to File -> New -> New Module. Select “Import JAR/AAR” and select file path to PDF417Scanner.aar.

New Module Page

File Path Page

2. Copy idscan_android_lib.jar to your libs folder and add dependencies in your app’s build.gradle for “:PDF417Scanner” and as well as any additional dependencies you may need:

dependencies {
    compile ''
    compile project(':PDF417Scanner')
    compile ''
    compile files('libs/idscan_android_lib.jar')

3. Add the following lines to your AndroidManifest.xml:


4. To start your scan, start PDF417ScanActivity as follows:

Start Scan and License Key

To obtain a license key, please email your application’s package name to Copy the received key to i.putExtra(PDF417ScanActivity.EXTRA_LICENSE_KEY, _key); in the above screenshot.

5.  onActivityResult will be called once PDF417ScanActivity has completed the scan. The scanning results can be accessed within onActivityResult:


6. To parse using the web API, call _parse(), and the results can be accessed in the onDriverLicenes method under IResultHandler.

private final IResultHandler _handler = new IResultHandler()
		public void onDriverLicense(DriverLicense result)
			_current_action = null;

			final String address = result.getAddress1();
			if(address != null)
				_tv_result.setText("Address: " + address);
				_tv_result.setText("Address: empty");