From 267a2ec0402470f46079ae2d9d5059e2bb67453a Mon Sep 17 00:00:00 2001 From: Debashish Chatterjee Date: Thu, 11 Aug 2011 17:05:36 +0100 Subject: [PATCH] Added FETCH_VOICEMAIL intent definition in VoicemailContract. Content provider does not directly use this intent. But it is fired by the contacts app to request the voicemail source to fetch voicemail audio of a single voicemail message. The constant needs to live in the contracts file to serve as a common definition between contacts and voicemail source apps. Bug: 5114261 Change-Id: Ibf7b2a4c871d3561d2ca50d03f8182352fadd3ab --- api/current.txt | 1 + core/java/android/provider/VoicemailContract.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/api/current.txt b/api/current.txt index 2900ce82625ff..41b732bc8ca74 100644 --- a/api/current.txt +++ b/api/current.txt @@ -17268,6 +17268,7 @@ package android.provider { } public class VoicemailContract { + field public static final java.lang.String ACTION_FETCH_VOICEMAIL = "android.intent.action.FETCH_VOICEMAIL"; field public static final java.lang.String ACTION_NEW_VOICEMAIL = "android.intent.action.NEW_VOICEMAIL"; field public static final java.lang.String AUTHORITY = "com.android.voicemail"; field public static final java.lang.String EXTRA_SELF_CHANGE = "com.android.voicemail.extra.SELF_CHANGE"; diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index 814f50ba56468..6787fd0386024 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -78,6 +78,18 @@ public class VoicemailContract { /** Broadcast intent when a new voicemail record is inserted. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_NEW_VOICEMAIL = "android.intent.action.NEW_VOICEMAIL"; + + /** + * Broadcast intent to request a voicemail source to fetch voicemail content of a specific + * voicemail from the remote server. The voicemail to fetch is specified by the data uri + * of the intent. + *

+ * All voicemail sources are expected to handle this event. After storing the content + * the application should also set {@link Voicemails#HAS_CONTENT} to 1; + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_FETCH_VOICEMAIL = "android.intent.action.FETCH_VOICEMAIL"; + /** * Extra included in {@link Intent#ACTION_PROVIDER_CHANGED} broadcast intents to indicate if the * receiving package made this change.