1.文件大小格式化: Log.d(TAG, Formatter.formatFileSize(this, 100)); //100 B Log.d(TAG, Formatter.formatFileSize(this, 1024*2)); //2.00 KB Log.d(TAG, Formatter.formatFileSize(this, 10000000)); //9.54 MB 2.日期格式化: int flagsDate = DateUtils.FORMAT_SHOW_DATE; int…