Question

I have one activity that starts several services in handlers some have their own threads to execute work in background.

When the activity is placed in background for like 15 minutes it is still there and i can get to it but it stops updating the textviews.

Why this happens?

Was it helpful?

Solution

When your activity is in the background, android pauses it and may stop and destroy it to free resources should need be. You should just make sure that the textviews are updated when the onResume() for the activity is fired.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top