I would like to know if RoboSpice can be used in BroadcastReceiver and, if so, how should I handle the life cycle?
Now I just call spiceManager.start(context)in the method onReceive(Context, Intent), but the service never stops.
spiceManager.start(context)
onReceive(Context, Intent)
Gaetan
Without knowing more, I would say that the best option is to call the SpiceManager shouldStop method at the end of processing in onReceive or when starting the request listener.
Source: https://habr.com/ru/post/1534797/More articles:reporting in Jenkins - junitManually signing email with DKIM in Python - pythonRetrieve the name and version of the cookbook while the chef is working - versionInfrastructure and internationalization of web applications (s) using only the JSON API - javascriptAdd new role to Chef.json file with sed - pythonAdd new property to MVC ModelMetadata - asp.net-mvcDifference between iconify () and recall () in Python Tkinter - pythonERROR 1146 (42S02): Table mysql.general_log does not exist - mysqlDeprecated: mysql_pconnect (): - phpHow to explicitly set carriage return when executing json.dump? - jsonAll Articles