Example usage for android.content Context getCacheDir

List of usage examples for android.content Context getCacheDir

Introduction

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

Prototype

public abstract File getCacheDir();

Source Link

Document

Returns the absolute path to the application specific cache directory on the filesystem.

Usage

From source file:Main.java

public static String getBaseDirectory(Context cw) {
    return cw.getCacheDir().getAbsolutePath();
}

From source file:Main.java

public static String getAppTempDir(Context context) {
    return context.getCacheDir().toString();
}

From source file:Main.java

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

From source file:Main.java

public static boolean isClearCache(Context context) {
    return (context.getCacheDir().listFiles().length == 0);
}

From source file:Main.java

public static File getHttpCacheDir(Context context) {
    return context.getCacheDir();
}

From source file:Main.java

public static File getApplicationCacheDir(Context context) {
    return context.getCacheDir();
}

From source file:Main.java

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

From source file:Main.java

static File getDataCacheDir(Context context) {
    return context.getCacheDir();
}

From source file:Main.java

public static String getConfigFilePath(Context context) {
    return context.getCacheDir().getAbsolutePath() + "/" + OVPNCONFIGFILE;
}

From source file:Main.java

public static File getEventsPath(Context context) {
    return new File(context.getCacheDir().getAbsolutePath() + "/info", fileName);
}