Hi
I want to create a flow as overlay timer application any help?
Overlay timer
Moderator: Martin
Overlay timer
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: Overlay timer
Maybe you want to be more specific.
What part do you need help with?
What part do you need help with?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)
Re: Overlay timer
Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc
http://automagic4android.com/flow.php?i ... ca1450a2f1
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc
http://automagic4android.com/flow.php?i ... ca1450a2f1
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1
Samsung Galaxy j2 non rooted.
Android 5.1.1
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: Overlay timer
Well your link doesn't work here.
But i can tell you that if you have access to the amount of seconds, then the only thing left to do is convert them into hours and minutes.
You can do that with: "getDurationString(duration)"
Your following calculation will be:
But, since this command accepts ONLY milliseconds to calculate it into whatever you need, you need to multiply your amount of seconds by 1000.
Then it becomes:
If, for example, your initial amount of seconds is 3660, your result will then be: "1h 1m"
But i can tell you that if you have access to the amount of seconds, then the only thing left to do is convert them into hours and minutes.
You can do that with: "getDurationString(duration)"
Your following calculation will be:
Code: Select all
getDurationString(yourSeconds);
Then it becomes:
Code: Select all
getDurationString(yourSeconds*1000);
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: Overlay timer
Also: I think this question belongs to the help section of the forum 

Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)
Re: Overlay timer
Link to flowRafi4 wrote:Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc
http://automagic4android.com/flow.php?i ... ca1450a2f1
http://automagic4android.com/flow.php?i ... ca1450a2f1
Do as digitalstone sugessted.
Edit Text count in your widget with
{getDurationString(global_interval_count*1000)}