Is there a way if an app is playing music?

37 views
Skip to first unread message

clonfsp

unread,
Jun 15, 2014, 2:17:34 PM6/15/14
to tas...@googlegroups.com
Hello,

I use Poweramp to listen to music. It is quite popular and a good piece of software. Do you know if is there any way to know if the app is running and playing music? I want to bring it to front when I turn on screen and unlock the phone. It is a fast way to enter commands.

thanks.

glimm

unread,
Jun 15, 2014, 4:19:20 PM6/15/14
to tas...@googlegroups.com
This plugins could maybe help you:

https://play.google.com/store/apps/details?id=org.kc.tasker.processes
https://play.google.com/store/apps/details?id=se.harenamons.ismusicplaying

But is also possible with a simple "Run shell" action. To check if Sixaxis irunning, i run this command:
ps | grep sixaxis_driver

If the result variable equals 1, it is not running.

Matt R

unread,
Jun 16, 2014, 12:45:17 AM6/16/14
to tas...@googlegroups.com
If you don't use any other music players, the %MTRACK variable will be set (with the current track name) when music is playing and cleared/empty when no music is playing.

Matt

Reply all
Reply to author
Forward
0 new messages