diff options
author | Mike LeBeau <mlebeau@android.com> | 2010-09-08 17:49:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-08 17:49:34 -0700 |
commit | 13831586874fab1592a9d6f9134a693b0b27bae8 (patch) | |
tree | 466fb3dc1374f10da6d3be11659e299f260cb3f2 /core | |
parent | b149f57d5ebe6afef819766962eee45c12bb5a5f (diff) | |
parent | 573c5d5edc1f51fd026e1d0e17ab883403eeddd9 (diff) | |
download | frameworks_base-13831586874fab1592a9d6f9134a693b0b27bae8.zip frameworks_base-13831586874fab1592a9d6f9134a693b0b27bae8.tar.gz frameworks_base-13831586874fab1592a9d6f9134a693b0b27bae8.tar.bz2 |
am 573c5d5e: am 46b84d5b: 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
Merge commit '573c5d5edc1f51fd026e1d0e17ab883403eeddd9'
* commit '573c5d5edc1f51fd026e1d0e17ab883403eeddd9':
Add MediaStore.ACTION_MEDIA_PLAY_FROM_SEARCH intent for open-ended
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/provider/MediaStore.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java index 9b2b090..2b8a8e6 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"; |