Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top