Contents
What You Need Before You Begin
A Working Development Environment
Source Code for the Sample Application
Designing for Different Devices
Deciding Where to Use Native Code
Difficulties Writing Native Code Using JNI
Generate the Code Using a Tool
Minimize the Number of JNI API Calls
Caching Classes, Method and Field IDs
Always Check for Java Exceptions
Always Check JNI Return Values
Always Add Log Lines While Developing
Native Code Reuse Using Modules
Benefit from Compiler Vectorization
Our Top 10 Secure Coding Recommendations
Install Intel x86 Atom System Image
Downloading Manufacturer’s AVDs
Automating Emulator Testing with Jenkins
Borrow Devices from Manufacturers
Services and the AsyncTask Class
Dealing with Long-Running Calls
3.129.70.113