문제

Let's say a BroadcastReceiver is declared in the manifest. It has run through onReceive() once and is the only component in the hosting process. What if another Intent is broadcast, is a new process spawn every time, or would the old one be reused if it hasn't been killed?

In other words: Is the onReceive()-method only run through ONCE for each receiver object?

도움이 되었습니까?

해결책

would the old one be reused if it hasn't been killed?

No.

Is the onReceive()-method only run through ONCE for each receiver object?

Yes, for manifest-registered receivers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top