I have a service running in the background. I started it with Activity, but I want to restore an instance of this service from another action (in the same application) in order to call one method. Is it possible?
There is only one service instance, maximum. You cannot have two copies. Therefore, simply attach the second action to the service (โrestore instanceโ).
Source: https://habr.com/ru/post/1301499/More articles:PyScripter Rpyc - pythonCan an ActionScript component listen on its own events? Event name? - flexReceive emails on a web hosting email domain from any user visiting the site - c #Recommendations for handling global errors in PHP? - phpHow to configure a WCF service to only accept one client identified by an x509 certificate - securityOpenGL ES Recommended Way to Display Background Image - iphoneIPhone MessageUI iPhone email attachments not sent to receiver - emailGetting XY text locations in TextBox / RichTextBox - c #What is it? in html link tags? - javascriptWhat does the database log keep track of? - databaseAll Articles