萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> 安卓開發 >> Android獲得可用內存大小

Android獲得可用內存大小

   ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);

  ActivityManager.MemoryInfo mi = new ActivityManager.MemoryInfo();

  am.getMemoryInfo(mi);

copyright © 萬盛學電腦網 all rights reserved