IT. Expert System.

Android Reference

MtpStorage


android.mtp

Class MtpStorage



  • public class MtpStorage
    extends Object
    This class represents a storage unit on an MTP device. Used only for MTP support in USB responder mode. MtpStorageInfo is used in MTP host mode
    • Method Detail

      • getStorageId

        public final int getStorageId()
        Returns the storage ID for the storage unit
        Returns:
        the storage ID
      • getStorageId

        public static int getStorageId(int index)
        Generates a storage ID for storage of given index. Index 0 is for primary external storage
        Returns:
        the storage ID
      • getPath

        public final String getPath()
        Returns the file path for the storage unit's storage in the file system
        Returns:
        the storage file path
      • getDescription

        public final String getDescription()
        Returns the description string for the storage unit
        Returns:
        the storage unit description
      • getReserveSpace

        public final long getReserveSpace()
        Returns the amount of space to reserve on the storage file system. This can be set to a non-zero value to prevent MTP from filling up the entire storage.
        Returns:
        reserved space in bytes.
      • isRemovable

        public final boolean isRemovable()
        Returns true if the storage is removable.
        Returns:
        is removable
      • getMaxFileSize

        public long getMaxFileSize()
        Returns maximum file size for the storage, or zero if it is unbounded.
        Returns:
        maximum file size


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 127 / 158693869. Delta: 0.02693 с