summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-08-31 16:25:12 -0400
committerMike Lockwood <lockwood@android.com>2010-08-31 16:25:12 -0400
commit2837eefc5459427138c080d445bb491c75630163 (patch)
tree6348f78959b4e432bedd2bfdf22cb2c182167484 /core
parent2cbe236138d1e8b003730087ee9c8e9ecca83795 (diff)
downloadframeworks_base-2837eefc5459427138c080d445bb491c75630163.zip
frameworks_base-2837eefc5459427138c080d445bb491c75630163.tar.gz
frameworks_base-2837eefc5459427138c080d445bb491c75630163.tar.bz2
MTP: Send an Intent after an MTP session that resulted in media database modifications
Change-Id: Ib2796e9155350c67769502935a73cf98d6ae9c08 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/Mtp.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/provider/Mtp.java b/core/java/android/provider/Mtp.java
index 0eb53d1..e25dbad 100644
--- a/core/java/android/provider/Mtp.java
+++ b/core/java/android/provider/Mtp.java
@@ -34,6 +34,14 @@ public final class Mtp
private static final String CONTENT_AUTHORITY_SLASH = "content://" + AUTHORITY + "/";
private static final String CONTENT_AUTHORITY_DEVICE_SLASH = "content://" + AUTHORITY + "/device/";
+
+ /**
+ * Broadcast Action: A broadcast to indicate the end of an MTP session with the host.
+ * This broadcast is only sent if MTP activity has modified the media database during the
+ * most recent MTP session
+ */
+ public static final String ACTION_MTP_SESSION_END = "android.provider.action.MTP_SESSION_END";
+
/**
* Contains list of all MTP/PTP devices
*/