80,359
社区成员
发帖
与我相关
我的任务
分享
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
MemoryInfo info = new MemoryInfo();
am.getMemoryInfo(info);
return Formatter.formatFileSize(context, info.availMem);// 将获取的内存大小规格化