Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 19. Android Native Development Kit > Building the JNI library

19.3. Building the JNI library

Building a JNI library requires a basic understanding of JNI, a C source file, and the appropriate entries in the Android.mk file. The next few sections break down these requirements, step by step. We begin with a brief discussion of how code is mapped between the Java and C language environments.

19.3.1. Understanding JNI

As mentioned earlier, a JNI library exposes one or more functions to a Java-based application through a specific naming convention. A C language function is named according to the following guideline:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint