summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Debashish Chatterjee <debashishc@google.com> 2011-08-11 17:05:36 +0100
committer Debashish Chatterjee <debashishc@google.com> 2011-08-11 18:07:25 +0100
commit267a2ec0402470f46079ae2d9d5059e2bb67453a (patch)
tree3d6555226ac0b413926436a713ab0d7331cd6393
parent08633c79164c8ab7362d6af1cf9ab576916fa7e0 (diff)
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
-rw-r--r--api/current.txt1
-rw-r--r--core/java/android/provider/VoicemailContract.java12
2 files changed, 13 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 2900ce82625f..41b732bc8ca7 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 814f50ba5646..6787fd038602 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.
+ * <p>
+ * 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.