foreground or background (floating buttons)

Winny57

Member
Bonjour,

J'ai créé une macro qui met en avant des boutons flottants lorsque certaines applications sont en fonctionnement (en premier plan ou en arrière-plan). Cependant, lorsque les applications sont en arrière-plan, elles sont considérées comme fermées alors qu'elles sont ouvertes mais en arrière-plan. Existe-t-il une astuce pour corriger cela ?

Merci d'avance.

---

Hello,

I've created a macro that highlights floating buttons when certain applications are running (in foreground or background). However, when the applications are in the background, they are considered closed even though they are actually open but running in the background. Is there a trick to fix this?

Thanks in advance.
 

MacroDroidDev

Administrator
Staff member
Sorry but it's not possible to detect what is running in the background. It used to be years ago but Google decided that apps shouldn't be allowed to know that so they killed the functionality.
 

yaggs

New member
Sorry but it's not possible to detect what is running in the background. It used to be years ago but Google decided that apps shouldn't be allowed to know that so they killed the functionality.
Does "app in foreground" still effectively work as a constraint?
 

Winny57

Member
Isn't it possible to add this via ADB? I trust MacroDroid so if there is a specific technique I am ready to try because it is restrictive.

My goal is to have the floating button displayed when the music player is playing even if it is not in the foreground this allows me to modify the volume or change the music track quickly
 

MacroDroidDev

Administrator
Staff member
The best option may be the notification trigger as most music players have a notification when playing. Or you could potentially consider the music/sound playing trigger but it may trigger when you don't want it to (when some other app plays a sound).
 

Winny57

Member
The best option may be the notification trigger as most music players have a notification when playing. Or you could potentially consider the music/sound playing trigger but it may trigger when you don't want it to (when some other app plays a sound).
Thanks, it works quite well 👍💪💪
 
Top