Android Question The app isn't responding after heavy load

mare1980k1

Member
Licensed User
Longtime User
Android gives the notification that the app isn't responding after some heavy load.

There are 1600 small files downloaded.
The app is responsive in logs and works fine, it's just that it goes in a loop.

I would like to prevent android from posting the error/warning.
How can I fix this?

Thanks a lot,
Marko
 

DonManfred

Expert
Licensed User
Longtime User
he app is responsive in logs and works fine, it's just that it goes in a loop.
Add a Sleep(100) inside the loop to make the system responsible.
Inform about resumeable subs and how to work with them.


 
Upvote 0

mare1980k1

Member
Licensed User
Longtime User
Dear Erel,

It is working now, the sleep did the trick, although not on every download, but on every 10 seconds I put a sleep of 100ms. At first I added 2ms sleep at every download and that didn't work.

Thank you so much DonManfred :)
 
Upvote 0
Top