public static long getInternalCacheMemoryInBytes(Activity act) { if (act != null) { string path = getInternalStorageCacheDir(act); StatFs stat = new StatFs(path); return(stat.getAvailableBytes()); } else { Log.e(TAG, "activity is null getInternalCacheMemoryInBytes method"); } return(0); }