First app, after system
http://my.oschina.net/wolfcs/blog/129696
directory [-] System library path Native Layer Load library process
System.loadlibrary () is a very important function that we use when using Java's JNI mechanism, which is to bring in the libraryload that implements the native method that we declare in Java code. or load other dynamic connection libraries.
Be curious, we can look at this method of its implementation, that is, the implementation process. (The code that is analyzed below comes from the Android 4.2.2 Aosp version.) First look at the code for this method (in the Libcore/luni/src/main/java/java/lang/system.java file):?
1 2 3 4 5 6 7 8 9 |
/** * Loads and links the library wi Th the specified name. The mapping of the * specified library name to the ' full path ' for loading the ' library is * IMPLEMENTATION-DEP Endent. * * @param libname * the name of T He library to load. * @throws unsatisfiedlinkerror * If the library could no<span style= "color: #003399;" ></span>t be loaded. |