List of usage examples for android.content Context getFilesDir
public abstract File getFilesDir();
From source file:Main.java
private static File getLocationsFile(Context context) { return new File(context.getFilesDir().getPath() + File.pathSeparator + PIT_LOCATIONS_FILENAME); }
From source file:Main.java
private static File descriptorFromInternalStorage(Context ctx, String path) { File root = ctx.getFilesDir(); return new File(root, path); }
From source file:Main.java
public static String getARPSpoofBinaryPath(Context c) { return c.getFilesDir().getAbsolutePath() + File.separator + "arpspoof"; }
From source file:Main.java
public static String getDroidSheepBinaryPath(Context c) { return c.getFilesDir().getAbsolutePath() + File.separator + "droidsheep"; }
From source file:Main.java
public static String getFullPath(Context context, String fileName) { return context.getFilesDir().getAbsolutePath() + "/" + fileName; }
From source file:Main.java
private static File locateFile(Context c, String name) { File filesDir = c.getFilesDir(); return new File(filesDir, name); }
From source file:Main.java
public static String getApplicationFilePath(Context context) { File filesDir = context.getFilesDir(); if (filesDir != null) { return filesDir.getAbsolutePath(); }// w ww .j av a 2s. c om return "Couldn't retrieve ApplicationFilePath"; }
From source file:Main.java
public static File getInterpreterRoot(Context context) { return context.getFilesDir(); }
From source file:Main.java
public static String getSplashDir(Context context) { String dir = context.getFilesDir() + "/splash/"; return mkdirs(dir); }
From source file:Main.java
public static String getConfigurationFile(Context context) { return context.getFilesDir().getPath() + "/" + "config"; }