Android Question StartService and busy app

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Hi, I Start a Service wich has a TImer wich triggers a URL read and parse it.
Problem is that when it is reading the url or parsing the other activities stops till its done.
E.g. you press a button and it is not pressed or you try to move up and down a list and it does not move.
I dont know if I can speak of threads in Android but how can I make that the service runs in another thread?
Or minimize that effect?.
You can see a video here... https://www.dropbox.com/s/cjlvsbpz5f8or82/efect.mp4?dl=0
Thanks
 

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Each time the data is retrieve from the html, I need to refresh the list the user are using, for this I have a timer in the activity to build the list, do a sql query and a for/next to do (refresh) the list.
May be this is the problem, the list may be long, many records, any way of do a "yield" inside the for/next to solve this problem?.

THis is an old app, started using B4A v6 I think.
Any easy way to modify it to b4x?
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top