标签:java sp on 问题 cti bs new as res
============问题描述============
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;
}
============解决方案1============
memTotal=mi.totalMem;
ActivityManager.MemoryInfo 小问题
标签:java sp on 问题 cti bs new as res
原文地址:http://www.cnblogs.com/meizhenfen42/p/4035700.html