Jump to content

Launch Poweramp and play specific playlist from start using tasker


Parth

Recommended Posts

I do not know tasker but in java code I launch a Poweramp playlist in New Playlist Manager as follows:

Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH);
intent.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, "vnd.android.cursor.item/playlist");
intent.putExtra(MediaStore.Audio.Playlists.ENTRY_CONTENT_TYPE,
        "vnd.android.cursor.item/playlist");
intent.putExtra(MediaStore.EXTRA_MEDIA_TITLE, "playlist");
intent.putExtra(SearchManager.QUERY, playlist);
if (intent.resolveActivity(getActivity().getPackageManager()) != null) {
    startActivity(intent);}

where

intent.putExtra(SearchManager.QUERY, playlist); 

 

where playlist has the actual playlistname

Perhaps this helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...