Android Context Get getExternalCacheDir(Context context)

Here you can find the source of getExternalCacheDir(Context context)

Description

get External Cache Dir

Declaration

public static File getExternalCacheDir(Context context) 

Method Source Code

//package com.java2s;
import java.io.File;
import android.content.Context;

import android.os.Environment;

public class Main {

    public static File getExternalCacheDir(Context context) {
        final String cacheDir = "/Android/data/" + context.getPackageName()
                + "/cache/";
        return new File(Environment.getExternalStorageDirectory().getPath()
                + cacheDir);// w  ww  .  j a  v a  2 s  . co m
    }
}

Related

  1. getDisplayMetrics(Context context)
  2. getDisplayPhoto(Context context, long photoFileId)
  3. getDpiToPix(Context ctx)
  4. getEditor( Context ctx)
  5. getExternalCacheDir(Context context)
  6. getExternalCacheDir(Context context)
  7. getFAFont(Context context)
  8. getFiles(Context context, String ext)
  9. getFromAssets(Context con, String fileName)