Chilkat for Android™ Java Library

(For Chilkat C/C++ Android native libs, click HERE.)

v9.5.0.79 26-Jul-2019sha256: 243ca2b3f18ab11d7c8eeff059ac9197a0e3a0a4616c3393b5ef272917bce7da
Chilkat for Android™ Java Library

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-9.5.0-android.zip) has this directory structure.
Note: Starting in v9.5.0.76, the armeabi, mips, and mips64 libs are no longer included.

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");
    }
    
}