Update strict mode

This commit is contained in:
Victor Shcherb 2013-05-27 10:07:15 +02:00
parent 395f1ef385
commit 472efba592
4 changed files with 6 additions and 7 deletions

View file

@ -234,7 +234,7 @@ public class NativeLibrary {
// look for a pre-installed library
if (path != null) {
try {
System.load(path + libBaseName);
System.load(path + "/" + System.mapLibraryName(libBaseName));
return true;
} catch (UnsatisfiedLinkError e) {
log.error(e);

View file

@ -30,10 +30,10 @@ import com.ibm.icu.text.DateFormat;
public class TestRouting {
public static int MEMORY_TEST_LIMIT = 800;
public static boolean TEST_WO_HEURISTIC = true;
public static boolean TEST_BOTH_DIRECTION = true;
public static boolean TEST_WO_HEURISTIC = false;
public static boolean TEST_BOTH_DIRECTION = false;
public static NativeLibrary lib = null;
public static boolean oldRouting = true;
public static boolean oldRouting = false;
public static Iterator getIterator(Iterable it){

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<string name="app_name">OsmAnd~</string>
<string name="app_version">1.3 alpha</string>
<string name="app_version">1.4 alpha</string>
<!-- Not translatable -->
<string name="ga_api_key">UA-28342846-2</string>
<string name="ga_dispatchPeriod">10</string>

View file

@ -5,8 +5,7 @@ import android.os.StrictMode;
public class EnableStrictMode {
public EnableStrictMode(){
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskWrites().detectNetwork().detectCustomSlowCalls().
detectDiskReads().
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().
penaltyLog()./*penaltyDeath().*/build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog()./*penaltyDeath().*/build());
}