private ActivityManager am; am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); MemoryInfo outInfo = new ActivityManager.MemoryInfo(); am.getMemoryInfo(outInfo); return outInfo.availMem;
返回的是 long 型的byte数据。
MongoDB数据库简介及安装,布布扣,bubuko.com
原文:http://blog.csdn.net/magneto7/article/details/22646077