FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Procedure timer running even if the Android app is minimized
Procedure timer running even if the Android app is minimized
Débuté par Rogelio, 19 avr. 2018 07:05 - 2 réponses
Connectez-vous…
Rogelio
#1
Posté le 19 avril 2018 - 07:05
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
Signaler
0
0
Rubén Sánchez Peña
#2
Membre enregistré
797 messages
Popularité : +40 (42 votes)
Posté le 09 mai 2018 - 14:32
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
Signaler
0
0
Rubén Sánchez Peña
#3
Membre enregistré
797 messages
Popularité : +40 (42 votes)
Posté le 23 mai 2018 - 07:50
You can use the new Task functions of WM23.
Rubén
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte