private StorageMount getPrimaryExternal(Context context) { StorageMount mount = null; if (SystemUtils.isPrimaryExternalStorageMounted()) { File dir = Environment.getExternalStorageDirectory(); String label = context.getString(R.string.device_storage); String description = UIUtils.getBytesInHuman(SystemUtils.getAvailableStorageSize(dir)) + " " + context.getString(R.string.available); String path = dir.getAbsolutePath(); mount = new StorageMount(label, description, path, true); } return mount; }