内存信息

ActivityManager activityManager = = (ActivityManager) getSystemService(ACTIVITY_SERVICE); 
MemoryInfo mi = new MemoryInfo(); 
activityManager.getMemoryInfo(mi); 
Log.i("memory free", "" + mi.availMem); 

你可能感兴趣的:(java)