android - Starting a local Service from different processes of same application -


i found following snippets in android docs.

 service runs in main thread of hosting process... 

and

 note calls startservice() not nesting: no matter how many times call startservice(), single call stopservice(intent) stop it. 

i believe means multiple calls startservice() not result in multiple instances of service.

consider following scenario:

i have app called myapp contains 2 services: myservice , myremoteservice. here, myservice local service while, name suggests, myremoteservice runs in separate process.

what happen if call startservice() start myservice main activity of myapp , myremoteservice?

which process myservice run in? there 2 different instances of myservice running in 2 different processes: 1 in process hosting main activity, , other instance in process hosting myremoteservice? how above 2 snippets hold in such scenario? appreciated. thanks.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -