Book Image

Android NDK: Beginner's Guide

By : Sylvain Ratabouil
Book Image

Android NDK: Beginner's Guide

By: Sylvain Ratabouil

Overview of this book

Table of Contents (18 chapters)
Android NDK Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Initializing a native JNI library


Before accessing their native methods, native libraries must be loaded through a Java call to System.loadLibrary(). JNI provides a hook, JNI_OnLoad(), to plug your own initialization code. Let's override it to initialize our native store.

Note

The resulting project is provided with this book under the name Store_Part4.