The1ArticleFor Android 4.0Build and test the development environment1
1.1 download required software 2
1.2 install required software 4
First in 1.3For Android 4.0Program25
1.4 profilingAndroidOrganizational structure of the program43
1.5 Android 4.0No Simulator3GSignal Solution65
The2InAndroidRun onCInitial program experience67
2.1 Download and installCTool chain for cross-language compilation67
First in 2.2CLanguage Programs76
2.3 InAndroidInstall, authorize, and run onCLanguage Programs80
2.4 use dynamic links to generate executable files andAndroidInstall, authorize, and run onCProgram87
2.5 solve the"Segmentation fault"Problem99
The3ArticleIn JavaCallingC/C ++Code101
3.1 JNIThoughts101
3.2 JNIMediumJavaCallC/C ++Code steps103
Java 3.3CallC/C ++Instance112
The4ArticleC/C ++AccessJavaClass140
4.1 Java VM,Jnienv,Jobject,JclassAnalysis140
4.2 (C/C ++)AccessJavaClasses, attributes, and methods in142
The5ArticleC/C ++ModifyJavaAttribute and callJavaClass Method160
5.1 (C/C ++)SetJavaAttribute160
5.2 (C/C ++)CallJavaMethod170
5.3 (C/C ++)CallJavaMethod of the class parent class180
The6ArticleC/C ++OperationJavaObject235
6.1 (C/C ++)CreateJavaObject235
6.2 (C/C ++)CreateJavaInStringObject248
The7ArticleC/C ++ProcessingJavaArray in260
7.1 (C/C ++)AccessJavaArray in260
7.2 (C/C ++)ProcessingJavaBase-class Array262
7.3 C/C ++ processing JavaObject Type array in298
The8ArticleJNIReferences and cache in320
8.1 global reference, local reference, and weak global reference 320
8.2 cache jfieldid 322
8.3 cache jmethodid 330
The9ArticleMultithreading 340
9.1 JNIMultithreading mechanism340
9.2 JNIMulti-thread practice342
10th Dalvik Virtual Machine 350
10.1 DalvikVirtual Machine thinking350
10.2 in-depth analysis of DalvikVirtual Machine ProcessingJNIMechanism and Process352
Article 2 JNIBest practices355
10.1 JNISecurity355
10.2 JNIBest practices360
How to become an appendixAndroidMaster's latest version: integrates cloud computing with smart terminals and hardware and software integration380