How to keep android process alive -


how apps swiftkey, locker master manages keep process alive after has been removed stack?

they don't use sticky notification.

update:- need keep process alive. in case service active process gets killed.

they have 1 or more unbound background service.

to kill services can go settings -> apps -> running.

however services may restarted @ time other apps or system sending system wide message (intent). in cases restarted by

  • time events
  • boot complete
  • other apps
  • other intents

in swiftkey case, started android os when needs show keyboard.

edit: can specify service runs in remote process adding service definition in androidmanifest

android:process="process_name_here" 

however there no such thing service cannot killed , can run forever. android os may start killing service if running low on resources or service running long period of time. overcome this, can make forground running service, needs show notification. can killed task managers, mentioned. should instead start focusing on how save it's state able restart later.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -