Hello.
with the big help of @LucaMs
i have add on my app, a timer, that work in background when the app is close too.
The app use tlhis class:
Problem1: Solved by OliverA solution: i have change "Duration" from int to long type
sometimes, when i goback to the app, the timer show wrong timer time:
the timer is setted on 5 minutes
This mean that when the bar arrived to 0, the timer continue to go....
Problem2: Try to implement JohnC solution
I have add a txt file in mysafefolder.
on tick sub, it write in the file, and then read the new value from it
Sometime, happend too, that the timer freese inside the app, (and not write on txt (for example at 3:25) and when i return inside, it contuìnue from there...
If need full app code, tell me..
APK FILE TEST IT, All problems should be solved
with the big help of @LucaMs
i have add on my app, a timer, that work in background when the app is close too.
The app use tlhis class:
[B4X] [XUI] [custom view] CircularProgressBar
This class is compatible with B4A, B4i and B4J. A simple circular progress bar implemented as a custom view. Usage: Add the class to your project and add a custom view with the designer. Set its value with" CircularProgressBar1.Value = 100 The animation is smooth in release mode...
www.b4x.com
Problem1: Solved by OliverA solution: i have change "Duration" from int to long type
sometimes, when i goback to the app, the timer show wrong timer time:
the timer is setted on 5 minutes
This mean that when the bar arrived to 0, the timer continue to go....
Problem2: Try to implement JohnC solution
I have add a txt file in mysafefolder.
on tick sub, it write in the file, and then read the new value from it
Sometime, happend too, that the timer freese inside the app, (and not write on txt (for example at 3:25) and when i return inside, it contuìnue from there...
If need full app code, tell me..
APK FILE TEST IT, All problems should be solved
B4X:
Attachments
Last edited: