GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Procedure timer running even if the Android app is minimized
Procedure timer running even if the Android app is minimized
Iniciado por Rogelio, abr., 19 2018 7:05 AM - 2 respostas
Conecte-se…
Rogelio
#1
Publicado em abril, 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
Denunciar
0
0
Rubén Sánchez Peña
#2
Membro registado
794 mensagems
Popularité : +40 (42 votes)
Publicado em maio, 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
Denunciar
0
0
Rubén Sánchez Peña
#3
Membro registado
794 mensagems
Popularité : +40 (42 votes)
Publicado em maio, 23 2018 - 7:50 AM
You can use the new Task functions of WM23.
Rubén
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto