Error processing SSI file
LEADTOOLS Library

Show in webframe

Setting up LEADTOOLS Demos Android Development Environment

Before working with the LEADTOOLS Android demo projects, take the following steps to set up the Android development environment.
  1. Download and the Install Android Studio IDE:
    https://developer.android.com/studio/index.html.
  2. Extract the LEADTOOLS Android ZIP file.

How to import and setup the Demos into Android Studio:

  1. Run the Android Studio IDE.
  2. In Android Studio, Select "Open an existing Android Studio project":

  3. Select the path for any of the demos to load (i.e. <LEADTOOLS>Examples/Android/ViewerDemo).

    Note: When the demo is opened the first time, Android Studio will ask for the Gradle settings:

    Click OK, to use the Gradle Wrapper, or Cancel to set the path to a local Gradle distribution.

  4. Setting LEADTOOLS license:
    • Add the license file (i.e. LEADTOOLS.lic) to <LEADTOOLS>Examples/Android/LeadtoolsDemos/src/main/res/raw/leadtools.lic


      Note: Raw files must contain only [a-z0-9_.]

    • Update the license info in the Support class as the following:


      (<LEADTOOLS>Examples/Android/LeadtoolsDemos/src/main/java/leadtools/demos/Support.java)

      int licenseFileId = R.raw.leadtools; // add the developer key here (The content of LEADTOOLS.lic.key) String developerKey = "contents...";

  5. Click on Run button .
  6. The 'Select Deployment Target' dialog will appear. Select the target device to install the demo APK.

Error processing SSI file