获取系统运行内存(RAM)大小: public static void getRAMTotalMemorySize(final Context context){ //获得ActivityManager服务的对象 ActivityManager mActivityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); //获得MemoryInfo对象 Activi