80,349
社区成员
发帖
与我相关
我的任务
分享
public long getTotalAvaile()
{
long memTotal;
ActivityManager am=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
ActivityManager.MemoryInfo mi=new ActivityManager.MemoryInfo();
//MemoryInfo
am.getMemoryInfo(mi);
memTotal=mi.totalMem();
return memTotal;
}