質問

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