List of usage examples for android.content Context getExternalFilesDir
@Nullable public abstract File getExternalFilesDir(@Nullable String type);
From source file:Main.java
public static String getPrivateDbDir(Context c) { return c.getExternalFilesDir("Db").getAbsolutePath(); }
From source file:Main.java
public static String getSdcardFilesDir(Context c) { return c.getExternalFilesDir(null).getAbsolutePath() + File.separator; }
From source file:Main.java
public static String getPrivateCrashDir(Context c) { return c.getExternalFilesDir("Crash").getAbsolutePath(); }
From source file:Main.java
public static String getPrivateAttachmentDir(Context c) { return c.getExternalFilesDir("Attachment").getAbsolutePath(); }
From source file:Main.java
public static String getPathePubDec(Context context) { return context.getExternalFilesDir(null) + "/temp/"; }
From source file:Main.java
public static String getPathDownloads(Context context) { return context.getExternalFilesDir(null) + "/downloads/"; }
From source file:Main.java
public static File getWalkerFilesDir(Context context) { return context.getExternalFilesDir(null); }
From source file:Main.java
public static File externalFilesDir(Context c) { File f = c.getExternalFilesDir((String) null); if (f == null || !f.exists()) { f = c.getFilesDir();//from w w w. jav a2 s . c om } return f; }
From source file:Main.java
public static void init(Context context) { DEFAULT_DIR = context.getExternalFilesDir("ObjectCache"); }
From source file:Main.java
public static String getExternalRoot(Context context) { String ext = context.getExternalFilesDir(null).getAbsolutePath(); return ext;/*from w w w . j a v a 2s.co m*/ //return context.getExternalFilesDir(null); }