Hi,
not yet an automagic user but in search of a solution for a problem.
I've an app to control a remote media player (two options available, html5 running in Chrome as well as android app)
Think of it as a media player only that music is not actually played in the device. Music is stored and played in a different device, but you have cover art, volume control, pause/play, progress bar, etc
So far screensaver will trigger after a time without user interaction. Problem is I want to trigger screensaver when music is paused, not when music is playing (since I want to see song title and cover on the screen). Since I'll have a playlist, there will be no user interaction with the app. That means I need to detect activity based on changes in progress bar, counter for time played/remaining, etc
Is it possible to achieve this with automagic?
Thanks in advance
Detect whether App is active/paused
Moderator: Martin
-
- Posts: 179
- Joined: 16 Oct 2019 17:38
Re: Detect whether App is active/paused
Hello and welcome.
The answer is POSSIBLY with this trigger:
https://automagic4android.com/trigger_m ... ed_en.html
My advice to you would be to download the trial version of Automagic and test it. It's not available from Google Play Store. Here's the link:
https://automagic4android.com/evaluation_en.html
Hope this helps and maybe other forum members can help too.
Good luck
The answer is POSSIBLY with this trigger:
https://automagic4android.com/trigger_m ... ed_en.html
My advice to you would be to download the trial version of Automagic and test it. It's not available from Google Play Store. Here's the link:
https://automagic4android.com/evaluation_en.html
Hope this helps and maybe other forum members can help too.
Good luck
Crude but it works.
Re: Detect whether App is active/paused
When you mean no interaction >> screensaver, this mean the phone is actually locked at that time right? If yes, then use the Media session changed as pointed by Micky above. Then use action Lock device and turn on screen again. This should trigger the screensaver. But you have to try it out first, since it might not work in all devices.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Detect whether App is active/paused
I'll test but think most probably won't work since the media is not played in the device.Micky Micky wrote: ↑10 Feb 2020 19:08Hello and welcome.
The answer is POSSIBLY with this trigger:
https://automagic4android.com/trigger_m ... ed_en.html
Thanks!
Re: Detect whether App is active/paused
Hi Desmanto,Desmanto wrote: ↑11 Feb 2020 19:07When you mean no interaction >> screensaver, this mean the phone is actually locked at that time right? If yes, then use the Media session changed as pointed by Micky above. Then use action Lock device and turn on screen again. This should trigger the screensaver. But you have to try it out first, since it might not work in all devices.
nope, the tablet isn't locked and the goal is that it never locks.
Re: Detect whether App is active/paused
We need Screenshot to see the case better. If the screen is not locked, then it is not screen saver. It is just like another view of the app. It seems what you need is the setting of the app itself to show the info much faster. I don't know how long the "screensaver" will trigger, but it seems this is related to the app setting. Don't know if other app can interfere with it.
Since everything is always screen on, I think trigger UI Event or action Control UI can do it in the sense if there is a button that can be used to trigger the screen saver immediately. Accessibility services for Automagic should be enabled first to do this.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.