@ SuppressWarnings ( "deprecation" ) public static void load ( String appname , JNILibrary library ) { // we force ALL work on all libraries to be synchronized synchronized ( mLock ) { deleteTemporaryFiles ( ) ; try { library . load ( appname ) ; } catch ( UnsatisfiedLinkError e ) { // failed; faill back to old way JNILibraryLoader . loadLibrary ( library . getName ( ) , library . getVersion ( ) ) ; } } }
Load the given library into the given application .