GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Strange Issue in Android only
Strange Issue in Android only
Iniciado por Jim, jun., 07 2019 5:23 PM - 4 respostas
Conecte-se…
Jim
#1
Publicado em junho, 07 2019 - 5:23 PM
I have an app that will connect to one of our many different units and download the onboard logs into a buffer. Then a procedure parses the data and displays it in a table.
If the data is downloaded once, the data table is filled in under 2 seconds. If the user decides to download them again for some reason, the procedure takes quite a while to run (20 seconds) and populate the data into the table. A couple of our units have 4000 records, and these take over a minute the second time.
I cannot see a reason for this big delay. It makes the app appear to have frozen, when it hasn't. In the emulator and IPhone the behavior does not happen, only on an Android device.
I have tried three different devices, two phones and a tablet.
Any suggestions?
Jim
Denunciar
0
0
WindevCol
#2
Publicado em junho, 08 2019 - 3:42 AM
Have you tried to manage that process on a completely different thread than the main UI thread ? that is what i would do..
Denunciar
0
0
Jim
#3
Publicado em junho, 10 2019 - 7:42 PM
Thanks, I am going to try that.
The problem actually got worse after trying to make the Android version more like the IOS version.
There is a clue in there somewhere.
Previously I have the download log on its own window. When changing to different units it was fine the first download for a new unit. In IOS I had to change it to make the entire app in one window. When I changed the Android app to all one window, switching from unit to unit still has the big delay even the first time on a unit unless the app was just opened.
I have not used threads, but the boss has. I think we can solve this.
Thanks
Jim
Denunciar
0
0
Jim
#4
Publicado em junho, 14 2019 - 5:53 PM
Well I am happy to report that this worked. Why I don't know, but it did.
Thanks
Jim
Denunciar
0
0
WindevCol
#5
Publicado em junho, 16 2019 - 2:01 PM
I am happy that my advice helped you solve the issue, i wish you the best in your development projects.
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