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
Post a Comment