Android duplicate services -


i wondering if service (myservice.class) can created twice(or more) when using same class. example if first initiation on application (which means keeps running on background) , others happens on broadcast received

 startservice(new intent(this, myservice.class)); 

or if service running others not initialize..?

as discussed here, service has single instance. , stated on docs every call startservice makes corresponding instance of service onstartcommand invoked. doesnt create new instance.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -