Share via


MediaStore.IntentActionMediaPlayFromSearch Field

Definition

An intent to perform a search for music media and automatically play content from the result when possible.

[Android.Runtime.Register("INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH")]
public const string IntentActionMediaPlayFromSearch;
[<Android.Runtime.Register("INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH")>]
val mutable IntentActionMediaPlayFromSearch : string

Field Value

Attributes

Remarks

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.

This intent always includes the android.provider.MediaStore#EXTRA_MEDIA_FOCUS and android.app.SearchManager#QUERY extras. The android.provider.MediaStore#EXTRA_MEDIA_FOCUS extra determines the search mode, and the value of the android.app.SearchManager#QUERY extra depends on the search mode. For more information about the search modes for this intent, see Play music based on a search query in Common Intents.

This intent 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.

Java documentation for android.provider.MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to