public static boolean loadNativeLibrary(){
  try {
    Log.i(TAG,"Attempting to load library: " + LIBRARY_NAME);
    System.loadLibrary("c++_shared");
    System.loadLibrary(LIBRARY_NAME);
  }
 catch (  Exception e) {
    Log.e(TAG,"Exception loading native library: " + e.toString());
    return false;
  }
  return true;
}

public static boolean loadNativeLibrary ( ) { try { Log . i ( TAG , "Attempting to load library: " + LIBRARY_NAME ) ; System . loadLibrary ( "c++_shared" ) ; System . loadLibrary ( LIBRARY_NAME ) ; } catch ( Exception e ) { Log . e ( TAG , "Exception loading native library: " + e . toString ( ) ) ; return false ; } return true ; }
attempts to load the native library so that native functions can be called .
