Before working with the LEADTOOLS Android demo projects, take the following steps to set up the Android development environment.
Download and install the Android Studio IDE: https://developer.android.com/studio/.
Extract the LEADTOOLS Android ZIP file.
Run the Android Studio IDE.
In Android Studio, Select "Open an existing Android Studio project":
Select the path for any of the demos to load. For instance, try <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.
Set the LEADTOOLS license:
Add the license file (i.e. LEADTOOLS.lic) to <INSTALLDIR>/Examples/Android/ViewerDemo/viewerDemo/src/main/res/raw/leadtools.lic
Note: Raw files must contain only [a-z0-9_.]
Update the license info as follows:
<INSTALLDIR>Examples/Android/ViewerDemo/viewerDemo/src/main/java/leadtools/viewerdemo/ViewerDemoActivity.java
int licenseResourceId = R.raw.leadtools;
// "dev_key" is the LEADTOOLS license developer key (The content of LEADTOOLS.lic.key)
Support.setLicense(this, licenseResourceId, "dev_key");
Choose to use LEADTOOLS libraries from you local installation, or opt to use remote Maven artifacts. In the root build.gradle file for each LEADTOOLS demo, a project-wide variable is defined:
project.ext.useMaven = false
Click the Run button
The "Select Deployment Target" dialog will appear. Select the target device to install the demo APK.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.