Consume exception if native library could not be loaded.

This commit is contained in:
Pavol Zibrita 2011-11-09 00:48:15 +01:00
parent cea059fa86
commit de58580d49

View file

@ -302,7 +302,11 @@ public class OsmandApplication extends Application {
public void run() {
List<String> warnings = null;
try {
NativeOsmandLibrary.preloadLibrary();
try {
NativeOsmandLibrary.preloadLibrary();
} catch (ExceptionInInitializerError e) {
LOG.info("Native library could not loaded!");
}
warnings = manager.reloadIndexes(startDialog);
player = null;
SavingTrackHelper helper = new SavingTrackHelper(OsmandApplication.this);