Android Utililty Methods Memory Get

List of utility methods to do Memory Get

Description

The list of methods to do Memory Get are organized into topic(s).

Method

intFreeMemory()
Free Memory
StatFs statFs = new StatFs(Environment
        .getExternalStorageDirectory().getAbsolutePath());
int Free = (statFs.getAvailableBlocks() * statFs.getBlockSize()) / 1048576;
return Free;
intTotalMemory()
* Returns size in MegaBytes.
StatFs statFs = new StatFs(Environment
        .getExternalStorageDirectory().getAbsolutePath());
int Total = (statFs.getBlockCount() * statFs.getBlockSize()) / 1048576;
return Total;