• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Tasker Question

johnbottom

Lurker
Oct 21, 2014
3
0
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?
 
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. :)
 
Upvote 0
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.
 
Upvote 0
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.

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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones