문제

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