문제

I would like to know if it is possible to use RoboSpice in a BroadcastReceiver and, if it is, how should I handle the lifecycle ?

Right now I am just calling spiceManager.start(context) in the onReceive(Context, Intent) method, but the service in never stop.

Gaëtan

도움이 되었습니까?

해결책

Without knowing more, I would say the best option is to call the SpiceManager's shouldStop method at the end of your processing in onReceive, or when the request listener is triggered.

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