Android Question CustomListView safe change contents

vfafou

Well-Known Member
Licensed User
Longtime User
Hello!
I have a CustomListView object that each item is a panel consisting of some labels.
This listview is being totally refreshed according to some GPS data, so there is not any periodical function there.
Another process from websocket, is updating partially some of the labels of some listview panel items. Not periodically again.
This is resulting to eventual crashes, because it's possible to conflict the GPS process with the websocket process.
How could I do these changes or refreshes safely, without app crash?
Note that the crashes don't give any report!

Thank you in advance!
 
Last edited:

vfafou

Well-Known Member
Licensed User
Longtime User
Hello Erel!
Thank you for your response!
The log was stopping to this process, but the crash caused from spatialite_stmt that was called on every GPS_LocationChanged.
I've already changed the spatialite_stmt calling frequency to 1 per 10 seconds and the app is running perfectly now!
My only problem is that somewhere else in my code, there is a memory leak that I'm investigating where it could be!
 
Upvote 0
Top