• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code. It is hoped this will be ready for final beta-testing by the end of the May. See forum thread for more details and to discuss.    

Search the Community

Showing results for tags 'intents INTENT_ACTION_MEDIA_P'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. I have the following code which works for Google Play Music but partly for Poweramp public void playSelectedPlaylist(String playlistname) { Intent intent = new Intent( MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH); intent.putExtra(MediaStore.Audio.Playlists.ENTRY_CONTENT_TYPE, "android.intent.extra.playlist" ); intent.putExtra(SearchManager.QUERY, playlistname); intent.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, "vnd.android.cursor.item/playlist"); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); }else{ doToast("Sorry, no app was found to service this request", context); } } The intent is INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH and it finds all those apps that have this in their manifest.xml file. So far so good as Poweramp shows up. Selecting Poweramp from the choices does present the user with the appropriate playlist. When clicking this and select "Play" nothing happens other than Poweramp asking me if I want to play filtered or play all. Selecting either has not effect as nothing happens The intent.putExtra(SearchManager.QUERY, playlistname) is as follows: [ResolveInfo{410e93c8 com.maxmpz.audioplayer.PlayListActivity p=0 o=0 m=0x108000}] Poweramp has the following actions for PlayListActivity - ACTION_SHOW_CURRENT - ACTION_SHOW_LIST - SEARCH - MEDIA_SEARCH - CREATE_SHORTCUT The PlayerUIActivity has - VIEW - MEDIA_PLAY_FROM_SEARCH Looking at this I assume that Poweramp reacts as a potential app to handle the activity but when it then has to deal with a playlist, there is no action to process it. Is my assumption correct? If so, will this functionality be added to the next release? Google Play Music does play the playlist without any problems. Anyone with suggestions, thoughts I can try out?