Did you find a way to close Poweramp ? if I use cmd:100 on my S5 it stops play but the app is still front and centre on the screen rather than closed.? sent intent to service.
Variable Set
Name:%PowerAmpSkip To:15
Send Intent
Action:com.maxmpz.audioplayer.API_COMMAND
Extra:cmd:16
Target:ServiceStop
If %PowerAmpSkip !Set
Variable Add
Name:%pos
Value:%PowerAmpSkip
Variable Clear
Name:%PowerAmpSkip
Send Intent
Action:com.maxmpz.audioplayer.API_COMMAND
Extra:cmd:15
Extra:pos:%pos
Target:Servicepublic void playSelectedPlaylist(String playlist_id){ Intent intent = new Intent(PowerampAPI.ACTION_API_COMMAND); intent.putExtra(PowerampAPI.COMMAND, PowerampAPI.Commands.OPEN_TO_PLAY) .setData(PowerampAPI.ROOT_URI.buildUpon() .appendEncodedPath("playlists") .appendEncodedPath(playlist_id) .appendEncodedPath("files") .build()); Intent explicit_intent = new Intent(createExplicitFromImplicitIntent(getActivity(), intent)); getActivity().startService(explicit_intent);
anyone know how to format this for Tasker to test?
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/014722ff-868b-4dd8-9d18-5b493e5ef065%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/062abcae-2ee9-494b-a59a-ed1a929864d0%40googlegroups.com.
| * Uri query parameter - shuffle mode | |
| */ | |
| public static final String PARAM_SHUFFLE = "shf"; | |
| /** | |
| * Sent by your app to Poweramp.<br> | |
| * Poweramp Control action.<br> | |
| * Can be sent to {@link #API_RECEIVER_NAME}, {@link #API_ACTIVITY_NAME}, {@link #PLAYER_SERVICE_NAME}<br> | |
| * Starting from Poweramp build-855 this is now also a broadcast intent (which should be the primary target of this action).<br> | |
| * Previously this was executed directly by service and though this is still supported it's deprecated.<br> | |
| * The issue with sending intents to service is foreground processing, which on current Androids 8-10 can't be 100% reliable processed and may cause unexpected ANR errors<br><br> | |
| * | |
| * Extras:<br> | |
| * {@link #COMMAND} - command to execute<br> | |
| * {@link #PACKAGE} - optional - the command issuing plugin/app package name - for the debugging purposes. Poweramp will log appropriate command details if specified<br> | |
| * {@link #SOURCE} - optional - the source of command, e.g. "widget", "UI", etc. - for the debugging purposes<br> | |
| */ | |
| public static final String ACTION_API_COMMAND = "com.maxmpz.audioplayer.API_COMMAND";" Does this mean PARAM_SHUFFLE needs to be present in the code somewhere? |
| /** | |
| * Set shuffle mode<br> | |
| * Extras:<br> | |
| * {@code boolean showToast} - (optional) if false, no toast will be shown. Applied for cycle only<br> | |
| * {@code int shuffle} - (optional) if exists, appropriate mode will be directly selected, otherwise modes will be cycled | |
| * @see PowerampAPI.ShuffleMode | |
| */ | |
| public static final int SHUFFLE = 9; |
| public static final class ShuffleMode { | |
| /** | |
| * No any shuffle selected | |
| */ | |
| public static final int SHUFFLE_NONE = 0; | |
| /** | |
| * All songs global category shuffle | |
| */ | |
| public static final int SHUFFLE_ALL = 1; | |
| /** | |
| * Just songs from current category shuffled | |
| */ | |
| public static final int SHUFFLE_SONGS = 2; | |
| /** | |
| * Categories shuffled, songs in order | |
| */ | |
| public static final int SHUFFLE_CATS = 3; | |
| /** | |
| * Songs shuffled, categories in order | |
| */ | |
| public static final int SHUFFLE_SONGS_AND_CATS = 4; |
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/b2c38529-5f24-4dc2-895d-f4f50d897907%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c906d28a-8a11-463f-9a1d-a93056836e67%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c906d28a-8a11-463f-9a1d-a93056836e67%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/25150bfc-c8bd-41c7-8e84-e871420b0fde%40googlegroups.com.
If you find one that works you can change the intent, replacing showToast:1 with
shuffle:X
You will need to send cmd:3 afterwards to start playing.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/ddb8bcc9-912b-413d-a98b-6266cdacbce4%40googlegroups.com.
There is one other option. Tasker allows you to embed Java code. I could try and see what I can do with that. But I won't have any spare time for weeks. I don't really see how it can do anything that the native tasker send intent can do anyway.
I'm not sure exactly how you ask Tasker to pass a boolean value in an intent. Maybe as true or as True. However since the playlist did not go into shuffle mode it is not good. You could try replacing the showToast:1 with shuffle:2 as that is the most likely one. Failing that you might have to settle for just using the play command and forgoing shuffle mode.
There is one other option. Tasker allows you to embed Java code. I could try and see what I can do with that. But I won't have any spare time for weeks. I don't really see how it can do anything that the native tasker send intent can do anyway.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/16d9a5da-a76b-45af-9697-635b4be0cc6c%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pqo-6J--UKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/2b27645d-c4f1-41d0-9d43-a01daeadd420%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/a1a79589-8df5-4e6b-a1a8-3ef1f02b0dd0%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/60243b1b-ecf5-468d-a358-20212e4f138f%40googlegroups.com.