PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Procedure timer running even if the Android app is minimized
Procedure timer running even if the Android app is minimized
Started by Rogelio, Apr., 19 2018 7:05 AM - 2 replies
Connect yourself…
Rogelio
#1
Posted on April, 19 2018 - 7:05 AM
Hello there, i am building and android app and i have made a procedure that after is loaded will execute all the time after a define number of minutes. The procedure runs fine as long as the app is open and is active on the screen. but if you open another app so my app gose into the background then the procedure does not execute.
How can i ensure that this precedure executes even is the application is on the background ?
Thanks
Report
0
0
Rubén Sánchez Peña
#2
Registered member
795 messages
Popularité : +40 (42 votes)
Posted on May, 09 2018 - 2:32 PM
Hi. When an application goes into the background, its Activity stops. To continue running code you must create a Persistent Thread and put your code inside it. see the help.
Rubén
Report
0
0
Rubén Sánchez Peña
#3
Registered member
795 messages
Popularité : +40 (42 votes)
Posted on May, 23 2018 - 7:50 AM
You can use the new Task functions of WM23.
Rubén
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text