• Camera Scanning
  • ID Parsing
  • DIVE
  • Web Services
  • Third Party Checks
  • Authentication
IDScan.net
Search Results for

    Show / Hide Table of Contents
    • ID Parsing SDK
      • iOS SDK V1
        • iOS SDK V2
      • Android and Java SDK
        • Properties, Methods, and Events
        • Check License Number Format Feature
      • .NET Library
        • Xamarin Example
        • Nuget Package Installation
    • Downloads

    Android – ID Parser SDK

    Example of use (Github)

    Setup

    1. Add idscan-public maven repository to the project build.gradle file.
    allprojects {
        repositories {
            ...
            maven {
                url 'https://www.myget.org/F/idscan-public/maven/'
            }
            ...
        }
    }
    
    1. Add the following to the module build.gradle file:
    dependencies {
        ...
        implementation 'net.idscan.components.android:dlparser-standard:1.28.4'
        ...
    }
    
    Note

    if you have already installed version before 1.28.4 you have to remove it from the project.

    Usage

    1. Create DLParser object.
    DLParser parser = new DLParser();
    
    1. Setup License Key. For setup License Key you need to call setup(Context, String). It accepts two parameters: application context and license key encoded as Base64 string.
    try {
        parser.setup(getApplicationContext(), "** LICENSE_KEY **");
    } catch(DLParserException e) {
        // TODO: handle the error.
    }
    
    1. Parse the data. For parsing data you need to call parse(byte[]) method.
    try {
        DLResult res = parser.parse(data);
    } catch(DLParserException | UnsupportedEncodingException e) {
        // TODO: handle the error.
    }
    

    You will find a complete example of using the library in MainActivity.java.

    Obtaining a License Key

    In order to receive the License Key send an email to support@idscan.net with the Package Name. Please be sure to provide your order number in the email once ready to upgrade from trial to production mode. Copy the received key into the _KEY field when setting up the DLParser() object as in the code above.

    In This Article
    • Setup
    • Usage
    Back to top IDScan.net IDScan.net GitHub