GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
[WM22] Android: Prevent running code from pausing while screen turns off
[WM22] Android: Prevent running code from pausing while screen turns off
Iniciado por Robert, jul., 26 2018 5:48 PM - 3 respostas
Conecte-se…
Robert
#1
Membro registado
105 mensagems
Publicado em julho, 26 2018 - 5:48 PM
Hi everyone,
Can anyone point me in the right direction for this?
I have an android application a loop of code that can sometimes take a while to complete.
The problem is that if the user leaves the device sitting while this is happening, the screen will turn it's self off causing the loop to pause.
Is there a way I can either prevent the screen from turning off while this loop completes, or to allow the process to continue while the screen is asleep?
Preferably I'd like to be able to do this only for this procedure, so everything else pauses when the device sleeps per normal.
Thanks!
Denunciar
0
0
Robert
#2
Membro registado
105 mensagems
Publicado em julho, 26 2018 - 10:55 PM
Never mind. I figured out I can use ThreadExecute() to accomplish this.
Now to figure out why it's slowing down the longer it runs.
Denunciar
0
0
Fabrice Harari
#3
Publicado em julho, 27 2018 - 1:49 PM
Hi Robert,
if you are adding stuff to a string in a loop, you may have the cause of
the slowing down
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Free Video Courses, free WXShowroom.com, open source WXReplication, open
source WXEDM.
More information on
http://www.fabriceharari.com
On 7/26/2018 2:55 PM, Robert wrote:
Never mind. I figured out I can use ThreadExecute() to accomplish this.
Now to figure out why it's slowing down the longer it runs.
Denunciar
0
0
JOHNKEN
#4
Membro registado
26 mensagems
Publicado em setembro, 17 2018 - 6:21 PM
Disable standby mode when running long procedure
SysStandby(sysBattery,sysStandbyInactive)
Enable standby mode
SysStandby(sysBattery, sysStandbyActive)
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