PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Strange Issue in Android only
Strange Issue in Android only
Started by Jim, Jun., 07 2019 5:23 PM - 4 replies
Connect yourself…
Jim
#1
Posted on June, 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
Report
0
0
WindevCol
#2
Posted on June, 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..
Report
0
0
Jim
#3
Posted on June, 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
Report
0
0
Jim
#4
Posted on June, 14 2019 - 5:53 PM
Well I am happy to report that this worked. Why I don't know, but it did.
Thanks
Jim
Report
0
0
WindevCol
#5
Posted on June, 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.
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