BTW, for timer why do you need this extension?
Simple web compo, tinydb alone is enough
BTW, for timer why do you need this extension?
Simple web compo, tinydb alone is enough
You can open 50 topics if you want, you still will not be able achieve to run foreground services on Android 5.1.1. Give it up
@Still-learning
When the Internet is weak, the time does not
appear from the Internet, so I resorted to this
Or the lack of internet on the phone
Did you tried to start it?
I can’t see the Task Start activity on your Screen.
I guess I’m stupid for this extension
I advise you to do like this.
Get current time
Decide final time and convert into millis…save into tinydb
When screen inti or started timer, get current time(online time) convert into millis, then add +1000.
By using datetool extension you can find the difference between current time with tinydb final time and convert into HH mm ss without internet.
Simple…
Else test this APK
So even the app closed, timer will be calculated once he open the app
@Still-learning
My goal is when I press a button the timer works and when I go back to the application and press another button the timer stops, this does not stop.
With that, the same problem (the internet is weak) exists.
I waited 3 minutes to reopen the application.
Because the Internet is very weak in my area, I need to do that without the Internet at all.
Thank you for your interest in helping me
Since there was / is no Doze
mode on Android 5.x, it is sufficient to set TimerAlwaysFires = true
. As long as the app is not closed, it should work on Android < 6 (API < 23, Doze
mode was introduced with Android 6).
Note: Whether the timer works in the background (app not visible, in idle / sleep mode) has nothing to do with a BackgroundTask
, but depends on whether Doze
mode is active or not.
@bodymindpower
My goal is for the timer to run in a mode (sleep, idle, when the app is paused) not when the app is closed. When the application is closed I don’t want it to run (temporary)
Can this be done without changing any programming in the extension?
Read my answer again. Everything to this has been said.
I dont open community as much as I did before
Here is a simple thing which you can apply in the blocks:
please give me this extension or example aia
it looks like you are using MIT App Inventor…
therefore please ask there in this thread Open Source • Background Tasks: Itoo 🚀 - Extensions - MIT App Inventor Community and do not forget to ask your question… I only can see some blocks…
Taifun
PS: I’m closing the 2 year old thread…