android - Exception does not catching in try..catch(Exception ex) -
testing presence of videeditor_jni native library in system libraries by
static { try { if (system.getproperty("videoeditor_jni") != null) { system.loadlibrary("videoeditor_jni"); } else { preferencemanager.setlibraryflag(false); } } catch (exception e) { preferencemanager.setlibraryflag(false); } } while running code i've got unsatisfiedexception on library in logcat. though i've put conditions , try..catch checking if condition , force close. why didn't go catch?? reason? tried unsatisfiedexception, runtimeexception, exception, error not called in catch.. need .
to catch exception stacktrace use method printstacktrace(). belows
write application class oncreate method.
public void oncreate() { super.oncreate(); .... try { if (system.getproperty("videoeditor_jni") != null) { system.loadlibrary("videoeditor_jni"); } else { preferencemanager.setlibraryflag(false); } } catch (exception e) { e.printstacktrace. } }
Comments
Post a Comment