Chilkat for Android™ Java Library
(For Chilkat C/C++ Android native libs, click HERE.)
Important: Don't Forget to Give your Application INTERNET Permissions
See: INTERNET Permissions for Android Applications
Getting Started
Download and Unzip to any directory.
To use Chilkat in an Android project, the Java classes and shared libraries should be copied into the project's directory structure.
Using Chilkat in an Android Studio Project
The Chilkat Android download (chilkat-android.zip) has this directory structure.
The directories under libs (in the Chilkat download) will be copied to the jniLibs directory in the Android Studio project. (You'll likely need to create the jniLibs directory.) The chilkatsoft directory will be copied to the com directory in the Android Studio project.
Here is a snapshot of the sample Android Studio project showing the locations of the jniLibs and chilkatsoft directories.
Here is a snapshot of the Android Studio directory structure in Windows Explorer
Adding Chilkat Related Java Code to an Android Studio Source File
The Chilkat-related code is shown in boldface below. The Chilkat shared library must be loaded via System.loadLibrary when the application starts.
package com.test; import android.app.Activity; import com.chilkatsoft.*; import android.widget.TextView; import android.os.Bundle; public class SimpleActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); CkCrypt2 crypt = new CkCrypt2(); // Display the version of the CkCrypt2 class tv.setText(crypt.version()); setContentView(tv); } static { System.loadLibrary("chilkat"); } }