Android获得可用内存大小
发布时间:2015-06-05 来源:查字典编辑
摘要:ActivityManageram=(ActivityManager)mContext.getSystemService(Context.A...
ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);
ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();
am.getMemoryInfo(mi);