There's a difference between RAM memory and internal flash memory right? I can get RAM memory by:
cat /proc/meminfo
However, I am not sure how to get Flash memory information.
I think I know how to get available memory:
ActivityManager activityManager = (ActivityManager).getSystemService(Context.ACTIVITY_SERVICE);
MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
activityManager.getMemoryInfo(memoryInfo);
memoryInfo.availMem;
Does this give available internal Flash memory?
How about total internal memory?
Does following unix command get me this info?
df
result:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 97744 0 97744 0% /dev
tmpfs 4096 0 4096 0% /sqlite_stmt_journals
/dev/block/mtdblock3 174080 154372 19708 89% /system
/dev/block/mtdblock5 169728 57144 112584 34% /data
/dev/block/mtdblock4 133120 89632 43488 67% /cache
/dev/block/mtdblock4 133120 89632 43488 67% /data/dalvik-cache
/dev/block//vold/179:1
7970928 2358576 5612352 30% /sdcard
if so, do I have to add all tmpfs & /dev/block/mtdblock# to get total internal memory?