1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker Question

Discussion in 'Android Apps & Games' started by johnbottom, Oct 21, 2014.

  1. johnbottom

    johnbottom Lurker
    Thread Starter

    Wondering if anyone can help.

    So I have an audiobook player, music player, and podcast app. I want to map a headset button(easy enough using headset button control) to a single tasker task that when pressed will open the music player, when pressed again close music and open audiobook, when pressed again open podcast app. Basically cycle through to the next app in order in a loop for when I want to switch between the 3.

    Is this even possible?

    1. Download the Forums for Android™ app!


  2. codesplice

    codesplice Elite Recognized Moderator

    Hi johnbottom, and welcome to Android Forums :)

    I've moved your post to the dedicated Tasker subforum. :thumbup:

    Off the top of my head, what you want to do should be possible, but I will need to do some thinking/tinkering to figure out the best route. In the meantime, hopefully some of our other Tasker users will be able to chime in with suggestions. :)
  3. johnbottom

    johnbottom Lurker
    Thread Starter

    Thanks for the response!

    If anyone is able to come up with how to do this using tasker I would be willing to paypal $10 for your time and effort.

    I have dabbled with it but I am a new tasker user and wasn't able to crack it.
  4. WarriusZero

    WarriusZero Guest

    You apparently have Headset Button Control so that should be easy enough.

    The task would look like this:

    Variables > Variable Add > Name = %Cycle, Value = 1, Wrap around = 3
    App > Launch App > youraudiobookplayer, If %Cycle equals 0
    App > Launch App > yourmusicplayer, If %Cycle equals 1
    App > Launch App > yourpodcastapp, If %Cycle equals 2

    (The Ifs are options in the Launch App actions)

    I've just tried with the trial version of Headset Button Control, which I didn't know, and it works quite nicely.
    johnbottom and codesplice like this.
  5. johnbottom

    johnbottom Lurker
    Thread Starter

    Wow. Thank you so much for taking the time to help me. I really appreciate it. My job allows us to use earphones but we are not allowed to take our phones out of our pocket. So I have been stuck trying to figure out what I could do. This will help me alot.


Tasker Forum


⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

February 15, 2020
Last Updated

Share This Page