// Created by plusminus on 13:24:05 - 21.09.2008
//package org.andnav2.osm.util;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
class Util {
public static final String DEBUGTAG = "OPENSTREETMAP";
public static final String BASEPATH_ON_EXTERNAL_MEDIA = "andnav2/";
public static final String SDCARD_SAVEDROUTES_PATH = "routes/";
public static final String SDCARD_SAVEDTRACES_PATH = "traces/";
public static final String SDCARD_SKYHOOKCACHE_PATH = "skyhookcache/";
public static final String SDCARD_TILE_PATH = "tiles/";
public static final int NOT_SET = Integer.MIN_VALUE;
public static final int Y = 0;
public static final int X = 1;
/**
* May crash when External-Media is not mounted.
* @return path, like "/sdcard/andnav2/"
always ending with a "/"
*/
public static final String getAndNavExternalStoragePath(){
final String absoluteExternalPath = android.os.Environment.getExternalStorageDirectory().getAbsolutePath();
if(absoluteExternalPath.endsWith("/")) {
return absoluteExternalPath + BASEPATH_ON_EXTERNAL_MEDIA;
} else {
return absoluteExternalPath + "/" + BASEPATH_ON_EXTERNAL_MEDIA;
}
}
}