These are the intents for Google Play Music. What would the code be in b4a?
Search and Play Album– Plays a full album from start to finish depending on the query
Search and Play Artist– Plays an album depending on the query
Search and Play Song– Plays a song based on a query
Search and Play Playlist– Plays a playlist based on a query
Search and Play Album– Plays a full album from start to finish depending on the query
B4X:
{
"mimetype": "",
"name": "Search and play Album",
"package": "",
"target": "Activity",
"data": "",
"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH",
"class": "",
"categories": [
{
"category": "android.intent.category.DEFAULT"
}
],
"extras": [
{
"type": "String",
"description": "The Album to play (repeat the album here)",
"key": "query",
"name": "Album",
"default": ""
},
{
"type": "String",
"description": "Required. Do not change this value",
"key": "android.intent.extra.focus",
"name": "Album Type",
"default": "vnd.android.cursor.item/album"
}
],
"id": "SEARCH_AND_PLAY_ALBUM",
"appname": "Media"
}
Search and Play Artist– Plays an album depending on the query
B4X:
{
"mimetype": "",
"name": "Search and play Artist",
"package": "",
"target": "Activity",
"data": "",
"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH",
"class": "",
"categories": [
{
"category": "android.intent.category.DEFAULT"
}
],
"extras": [
{
"type": "String",
"description": "The Artist to play",
"key": "query",
"name": "Artist",
"default": ""
},
{
"type": "String",
"description": "Required. Do not change this value",
"key": "android.intent.extra.focus",
"name": "Artist Type",
"default": "vnd.android.cursor.item/artist"
}
],
"id": "SEARCH_AND_PLAY_ARTIST",
"appname": "Media"
}
Search and Play Song– Plays a song based on a query
B4X:
{
"mimetype": "",
"name": "Search and play Song",
"package": "",
"target": "Activity",
"data": "",
"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH",
"class": "",
"categories": [
{
"category": "android.intent.category.DEFAULT"
}
],
"extras": [
{
"type": "String",
"description": "The Song to play",
"key": "query",
"name": "Song",
"default": ""
},
{
"type": "String",
"description": "Required. Do not change this value",
"key": "android.intent.extra.focus",
"name": "Song Type",
"default": "vnd.android.cursor.item/audio"
}
],
"id": "SEARCH_AND_PLAY_SONG",
"appname": "Media"
}
Search and Play Playlist– Plays a playlist based on a query
B4X:
{
"mimetype": "",
"name": "Search and play Playlist",
"package": "",
"target": "Activity",
"data": "",
"action": "android.media.action.MEDIA_PLAY_FROM_SEARCH",
"class": "",
"categories": [
{
"category": "android.intent.category.DEFAULT"
}
],
"extras": [
{
"type": "String",
"description": "The Playlist to play",
"key": "query",
"name": "Playlist",
"default": ""
},
{
"type": "String",
"description": "Required. Do not change this value",
"key": "android.intent.extra.focus",
"name": "Playlist Type",
"default": "vnd.android.cursor.item/playlist"
}
],
"id": "SEARCH_AND_PLAY_PLAYLIST",
"appname": "Media"
}