FORUMS
Remove All Ads from XDA

Recognize and store last playing media app

231 posts
Thanks Meter: 15
 
By Shadow128, Senior Member on 6th January 2020, 11:09 AM
Post Reply Email Thread
Hi there,

In my Android car head unit I'm using Tasker for automatic starting poweramp after booting, which works quite good but only for poweramp.

Now I'm using also sometimes other media apps like DAB-Z and I'm searching a solution for identifiying the last playing media app.
If the media app is paused the variable should be kept to the last playing app so at least the stored variable should only change, if another media app is playing.
In my case it's "only" DAB-Z and Poweramp.

Anyone knows a solution for this?

Thanks
7th January 2020, 01:48 AM |#2  
ktmom's Avatar
Forum Moderator
Thanks Meter: 2,688
 
More
Why not just create two profiles, one for each app launched and update the same variable.
7th January 2020, 12:44 PM |#3  
OP Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by ktmom

Why not just create two profiles, one for each app launched and update the same variable.

That would also be a good option
But how can I set a variable after opening an app?
7th January 2020, 01:30 PM |#4  
ktmom's Avatar
Forum Moderator
Thanks Meter: 2,688
 
More
Create a profile with the app as a context then set a variable in the task.

This is a very basic configuration. If you're still unsure, it will benefit you to review some tutorials targeted to beginners. There are many videos and written tutorials for tasker, both here on xda and on the internet in general.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes