Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top