summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mike LeBeau <mlebeau@android.com> 2010-09-08 17:43:15 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-09-08 17:43:15 -0700
commit46b84d5b4a44dbab8e0f6ee11f3ab42e11ce97bb (patch)
tree0612e68c6f4899d1f8f95bbdf2802820e80ade2e
parent95d8648054223a501fe5390edef7e5d9383a4be8 (diff)
parent2fe6fd055874ff70a9faeaa27716173b12e671fb (diff)
Merge "Add MediaStore.ACTION_MEDIA_PLAY_FROM_SEARCH intent for open-ended search and play of music. This is used, for instance, by Google's new "listen to" Voice Action." into gingerbread
-rw-r--r--api/current.xml11
-rw-r--r--core/java/android/provider/MediaStore.java16
2 files changed, 27 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index 1abf681a21c8..a495d047eb0e 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -140773,6 +140773,17 @@
visibility="public"
>
</field>
+<field name="INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH"
+ type="java.lang.String"
+ transient="false"
+ volatile="false"
+ value="&quot;android.media.action.MEDIA_PLAY_FROM_SEARCH&quot;"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
<field name="INTENT_ACTION_MEDIA_SEARCH"
type="java.lang.String"
transient="false"
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index d20e89dcae1b..075da338cb39 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -75,6 +75,22 @@ public final class MediaStore {
public static final String INTENT_ACTION_MEDIA_SEARCH = "android.intent.action.MEDIA_SEARCH";
/**
+ * An intent to perform a search for music media and automatically play content from the
+ * result when possible. This can be fired, for example, by the result of a voice recognition
+ * command to listen to music.
+ * <p>
+ * Contains the {@link android.app.SearchManager#QUERY} extra, which is a string
+ * that can contain any type of unstructured music search, like the name of an artist,
+ * an album, a song, a genre, or any combination of these.
+ * <p>
+ * Because this intent includes an open-ended unstructured search string, it makes the most
+ * sense for apps that can support large-scale search of music, such as services connected
+ * to an online database of music which can be streamed and played on the device.
+ */
+ public static final String INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH =
+ "android.media.action.MEDIA_PLAY_FROM_SEARCH";
+
+ /**
* The name of the Intent-extra used to define the artist
*/
public static final String EXTRA_MEDIA_ARTIST = "android.intent.extra.artist";