iosifak Posted July 18, 2018 Share Posted July 18, 2018 content://com.maxmpz.audioplayer.data/genres content://com.maxmpz.audioplayer.data/genres/#/files content://com.maxmpz.audioplayer.data/genres/#/files/meta content://com.maxmpz.audioplayer.data/genres/#/files/# content://com.maxmpz.audioplayer.data/genres/files Tried all of these with: # -> Genre Name # -> Genre Index -- Order on Genres list # -> Random Numbers Nothing worked. Where can I find my genre IDs? Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 Can you post some code? Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 What do you mean? Using intent from tasker: This works: content://com.maxmpz.audioplayer.data/playlists/1/files | cmd: 20 This doesn't work: content://com.maxmpz.audioplayer.data/genres/1/files | cmd: 20 Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 What are you trying to achieve? Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 Play all my rock music Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 Using an app called Manifestviewer shows all the intents Poweramp exposes. I see no intent as shown in your tasker config. The nearest service and intent that might do something is. I do not know enough about tasker though to fill in the blanks <service android:label="Player Service" android:name="com.maxmpz.audioplayer.player.PlayerService"> <intent-filter> <action android:name="com.maxmpz.audioplayer.API_COMMAND"/> </intent-filter> <intent-filter> <action android:name="com.maxmpz.audioplayer.API_COMMAND"/> <data android:scheme="file"/> </intent-filter> <intent-filter> <action android:name="com.maxmpz.audioplayer.API_COMMAND"/> <data android:mimeType="vnd.android.cursor.item/vnd.maxmpz.row" android:scheme="content"/> </intent-filter> </service> Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 I am using that intent you mentioned: com.maxmpz.audioplayer.API_COMMAND with cmd:20 extra and content://com.maxmpz.audioplayer.data/genres/1/files data url And it doesn't work while it does work with content://com.maxmpz.audioplayer.data/playlists/1/files This is the documentation: https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_lib/src/com/maxmpz/Poweramp/player/PowerampAPI.java Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 The value 20 public static final int OPEN_TO_PLAY = 20; but i guess there needs to be a selection of genres first the text reads: # means some numeric id (track id for queries ending with /files, otherwise - appropriate category id). The only reference to genres is in cats(category) public static final class Cats { public static final int ROOT = 0; public static final int FOLDERS = 10; public static final int GENRES_ID_ALBUMS = 210; public static final int ALBUMS = 200; public static final int GENRES = 320; So perhaps value 320 needs to be used and some data ="Rock" ?. Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 I guess it needs the internal id used in android music database to identify each of my genres. I don't know how to find those values Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 using razorsql on the pc and examining the Poweramp database the table: genre_entries and table genre try a number from 1000 upward Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 This works!! Thanks Link to comment Share on other sites More sharing options...
flyingdutchman Posted July 18, 2018 Share Posted July 18, 2018 Would you mind posting some screenshots of your tasker setup? Link to comment Share on other sites More sharing options...
iosifak Posted July 18, 2018 Author Share Posted July 18, 2018 https://s.amsu.ng/R5Mqdp6TbO0N My tasker is too complicated for a screenshot. Here is how I start playing rock music. There are countless other tasks and profiled that I use in order to make a remote control using an old bt mini keyboard for my car. Automatically starting music playlists and navigation and changing between genres using the keyboard. Itcs sweet Link to comment Share on other sites More sharing options...
Alx_2000 Posted January 13, 2020 Share Posted January 13, 2020 On 7/18/2018 at 12:30 PM, iosifak said: https://s.amsu.ng/R5Mqdp6TbO0N My tasker is too complicated for a screenshot. Here is how I start playing rock music. There are countless other tasks and profiled that I use in order to make a remote control using an old bt mini keyboard for my car. Automatically starting music playlists and navigation and changing between genres using the keyboard. Itcs sweet Can you post how you got it? I'm getting crazy with Poweramp intents that doesn't work for this... Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.