private String getFormatedFileSize(File file) {
		String byteWord = "bytes";
		String[] unitArray = {byteWord, "K" + byteWord, "M" + byteWord};
		double size = (double)file.length();
		int unitIndex = 0;
		DecimalFormat decimalFormat = new DecimalFormat();
		decimalFormat.setMaximumFractionDigits(3);
		if (size > KILO_LIMIT && size < MEGA_LIMIT) {
			unitIndex = 1;
			size /= (double)KILO_LIMIT;
		} else if (size > MEGA_LIMIT) {
			unitIndex = 2;
			size /= (double)MEGA_LIMIT;
		}
		return decimalFormat.format(size) + " " + unitArray[unitIndex];
	}