Example usage for android.content Context getFilesDir

List of usage examples for android.content Context getFilesDir

Introduction

In this page you can find the example usage for android.content Context getFilesDir.

Prototype

public abstract File getFilesDir();

Source Link

Document

Returns the absolute path to the directory on the filesystem where files created with #openFileOutput are stored.

Usage

From source file:Main.java

public static String getDataFilesDir(Context c) {
    return c.getFilesDir().getAbsolutePath() + File.separator;
}

From source file:Main.java

public static String getSniffBinaryPath(Context c) {
    return c.getFilesDir().getAbsolutePath() + File.separator + "sniff";
}

From source file:Main.java

private static String getFilesDir(Context _ctx) {
    return _ctx.getFilesDir().getAbsolutePath();
}

From source file:Main.java

public static String getAppDir(Context context) {
    return context.getFilesDir().toString();
}

From source file:Main.java

public static String getDocumentPath(Context context) {
    return context.getFilesDir().getAbsolutePath();
}

From source file:Main.java

public static String getFilesDir(Context context) {
    return context.getFilesDir().getAbsolutePath();
}

From source file:Main.java

public static String getDataFilePath(Context context) {
    return context.getFilesDir().getAbsolutePath() + File.separator;
}

From source file:Main.java

public static File getIntWorkingDir(Context context) {
    return context.getFilesDir();
}

From source file:Main.java

public static File getCodeDir(Context context) {
    return new File(context.getFilesDir(), "code");
}

From source file:Main.java

public static String getInternalFilesDir(Context context) {
    File file = context.getFilesDir();
    if (file != null) {
        return file.getAbsolutePath();
    }/*from  w  ww . ja v a  2 s  . c o  m*/
    return null;
}