List of utility methods to do Memory Get
int | FreeMemory() Free Memory StatFs statFs = new StatFs(Environment .getExternalStorageDirectory().getAbsolutePath()); int Free = (statFs.getAvailableBlocks() * statFs.getBlockSize()) / 1048576; return Free; |
int | TotalMemory() * Returns size in MegaBytes. StatFs statFs = new StatFs(Environment .getExternalStorageDirectory().getAbsolutePath()); int Total = (statFs.getBlockCount() * statFs.getBlockSize()) / 1048576; return Total; |