From 2837eefc5459427138c080d445bb491c75630163 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 31 Aug 2010 16:25:12 -0400 Subject: MTP: Send an Intent after an MTP session that resulted in media database modifications Change-Id: Ib2796e9155350c67769502935a73cf98d6ae9c08 Signed-off-by: Mike Lockwood --- core/java/android/provider/Mtp.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') 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 */ -- cgit v1.1