android - kill my application process after the creation of backgroundservice -


i want know please : if possible kill application process after creation of service. not require process in running mode make application light in memory ?

by default service run in same process ui of application, it's not idea kill main process of app if service not moved separate process.

if want run service in separate process, i'd suggest don't try kill main process of application, if android decide kill -> it'll himself.

if device run out of memory -> android unload activities (with saving state, of course), android can shutdown non-major services (see foreground service).


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -