StringBuffer sbf=new StringBuffer();
private void displayAvailMemory() {
final ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
ActivityManager.MemoryInfo outInfo = new ActivityManager.MemoryInfo();
activityManager.getMemoryInfo(outInfo);
sbf.append("\n================剩余内存:---->").append(outInfo.availMem >> 10).append("k");
Log.i(TAG, sbf.toString());
}