if (sMediaSizeToStandardMap == null) {
sMediaSizeToStandardMap = new ArrayMap<MediaSize, String>();
String[] mediaSizeToStandardMapValues = context.getResources()
.getStringArray(R.array.mediasize_to_standard_map);
final int mediaSizeToStandardCount = mediaSizeToStandardMapValues.length;
for (int i = 0; i < mediaSizeToStandardCount; i += 2) {
String mediaSizeId = mediaSizeToStandardMapValues[i];
MediaSize key = MediaSize.getStandardMediaSizeById(mediaSizeId);
String value = mediaSizeToStandardMapValues[i + 1];
sMediaSizeToStandardMap.put(key, value);
}
}
String standard = sMediaSizeToStandardMap.get(mediaSize);
return (standard != null) ? standard : context.getString(
R.string.mediasize_standard_iso);