java - Start foreground multiple times? -


i know multiple calls startservice(intent) result in 1 started servie , instance, wondering if same startforeground(int, id, notification) here's docs start service being called multiple times:

note multiple calls context.startservice() not nest (though result in multiple corresponding calls onstartcommand()), no matter how many times started service stopped once context.stopservice() or stopself() called...

because onstartcommand() may called multiple times, okay have startforeground(int, id, notification) called multiple times? if called 500 times in loop, there still 1 instance?

thanks,

ruchir


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -