transistor icon indicating copy to clipboard operation
transistor copied to clipboard

Wiki entry for tasker/intent integration

Open AndiLeni opened this issue 3 years ago • 1 comments

Hello,

I know this issue with auto-starting transistor has already been discussed and closed as wontfix. Nonetheless, I would find it very helpful, if the wiki here on GitHub would contain a working intent based solution to start transistor from various automating software programs.

I tried my very best, but could not get the intent based methods from other issues to work in Tasker. If someone, not necessarily the creator of this app, has had luck making this work, please leave a short message here for other users.

The following settings do start and bring transistor to the foreground, but does not start to playing: ACTION: org.y20k.transistor.action.SHOW_PLAYER EXTRA: PLAYBACK_STATE:true EXTRA: LAST_STATION:true PACKAGE: org.y20k.transistor CLASS: org.y20k.transistor.MainActivity TARGET: Activity

AndiLeni avatar May 29 '22 11:05 AndiLeni

Hi @AndiLeni

Sorry. I am a bit short on time right now. Let me just point you to two sections in the code that deal with starting Transistor via Intent:

  1. createShortcutIntent() Starts the playback service with a certain station. No user interface is shown in the process. Playback just starts. To be able to find out the uuid of a station can be tricky. All station info is stored in /Android/data/org.y20k.transistor/files/collection/collection.json on you device.
  2. shortcuts.xml Starts playback of the last played station. The user interface is shown.

I hope that helps getting you started. I you find the time, please post you findings in a comment.

y20k avatar Jun 01 '22 07:06 y20k