Chilkat for Android™ Java Library

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

v9.5.0.97 27-Jan-2024sha256: 7f375ff1335c5ccaf62e08398ef6b65c9386aa18a58ae61bf8a0191e35d7d1fc
Chilkat for Android™ Java Library

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