Вопрос

I have registered receiver dynamically with service. Will receiver work after service will die?

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

Решение

Now I have a question: will receiver work after service will die?

No. It will work briefly. Eventually, Android will terminate your process, if it thinks there are no services running (or they have been running too long) and that there are no activities in the foreground.

It is bad form for a service (or an activity) to leak a receiver.

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