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.