From 0cdd9f7def708a71a0d0722361f52c0416370dc6 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Thu, 5 May 2011 15:53:44 -0700 Subject: [PATCH] docs: add package description for mtp and a little more info to MtpDevice Change-Id: I44b3926c4a286f624de525a7f0cc896879582bf5 --- media/java/android/mtp/MtpDevice.java | 5 ++++- media/java/android/mtp/package.html | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 media/java/android/mtp/package.html diff --git a/media/java/android/mtp/MtpDevice.java b/media/java/android/mtp/MtpDevice.java index 47bb8c99e128f..3272fedbd64f4 100644 --- a/media/java/android/mtp/MtpDevice.java +++ b/media/java/android/mtp/MtpDevice.java @@ -22,7 +22,10 @@ import android.os.ParcelFileDescriptor; import android.util.Log; /** - * This class represents an MTP or PTP device connected on the USB host bus. + * This class represents an MTP or PTP device connected on the USB host bus. An application can + * instantiate an object of this type, by referencing an attached {@link + * android.hardware.usb.UsbDevice} and then use methods in this class to get information about the + * device and objects stored on it, as well as open the connection and transfer data. */ public final class MtpDevice { diff --git a/media/java/android/mtp/package.html b/media/java/android/mtp/package.html new file mode 100644 index 0000000000000..6bd9229afd70a --- /dev/null +++ b/media/java/android/mtp/package.html @@ -0,0 +1,8 @@ + + +

Provides APIs that let you interact directly with connected cameras and other devices, using the +PTP (Picture Transfer Protocol) subset of the MTP (Media Transfer Protocol) specification. Your +application can receive notifications when devices are attached and removed, manage files and +storage on those devices, and transfer files and metadata from the devices.

+ + \ No newline at end of file