android - Running multiple instance of a service -
is possible start service multiple times. means calling startservice multiple times. know if call startservice
, it'll call oncreate() -> onstartcommand()
. on startservice
, calls onstartcommand()
without oncreate()
. happens service ? creating multiple instance of service ?
no, service run in 1 instance. however, every time start service, onstartcommand() method called. @ this documentation.
Comments
Post a Comment