Android Utililty Methods File System Volume Get

List of utility methods to do File System Volume Get

Description

The list of methods to do File System Volume Get are organized into topic(s).

Method

StringgetVolumeName(final String devicePath)
Gets the volume name.
if (devicePath == null) {
    throw new IllegalArgumentException(
            "The volume name should be assigned");
final FileSystemView view = FileSystemView.getFileSystemView();
final File dir = new File(devicePath);
final String name = view.getSystemDisplayName(dir);
if (name == null) {
...