public class StorageUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StorageUtils.StorageInfo |
Modifier and Type | Field and Description |
---|---|
static String |
EXTERNAL_SD_CARD |
static String |
SD_CARD |
Constructor and Description |
---|
StorageUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,File> |
getAllStorageLocations() |
static String |
getSdCardPath() |
static File |
getStorage()
gets the best possible storage location by freespace
|
static File |
getStorage(Context ctx)
gets the best possible storage location by freespace
|
static List<StorageUtils.StorageInfo> |
getStorageList()
returns all storage paths, writable or not
|
static boolean |
isAvailable() |
static boolean |
isWritable() |
static boolean |
isWritable(File path) |
public static final String SD_CARD
public static final String EXTERNAL_SD_CARD
public static List<StorageUtils.StorageInfo> getStorageList()
public static File getStorage()
public static File getStorage(Context ctx)
public static boolean isAvailable()
public static String getSdCardPath()
public static boolean isWritable()
public static boolean isWritable(File path)