Android APIs
public class

MtpDeviceInfo

extends Object
java.lang.Object
   ↳ android.mtp.MtpDeviceInfo

Class Overview

This class encapsulates information about an MTP device. This corresponds to the DeviceInfo Dataset described in section 5.1.1 of the MTP specification.

Summary

Public Methods
final String getManufacturer()
Returns the manufacturer's name for the MTP device
final String getModel()
Returns the model name for the MTP device
final String getSerialNumber()
Returns the unique serial number for the MTP device
final String getVersion()
Returns the version string the MTP device
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public final String getManufacturer ()

Added in API level 12

Returns the manufacturer's name for the MTP device

Returns
  • the manufacturer name

public final String getModel ()

Added in API level 12

Returns the model name for the MTP device

Returns
  • the model name

public final String getSerialNumber ()

Added in API level 12

Returns the unique serial number for the MTP device

Returns
  • the serial number

public final String getVersion ()

Added in API level 12

Returns the version string the MTP device

Returns
  • the device version