Leoric icon indicating copy to clipboard operation
Leoric copied to clipboard

如何保活主进程

Open androiddan opened this issue 1 year ago • 0 comments

我希望业务是在主进程完成的,如何保活主进程。 目前我的做法是在application的oncreate内直接启动主进程的服务。这样force-stop后子进程启动时,同时也会把主进程拉起来。但是我单独kill主进程,就会有问题!

androiddan avatar Feb 22 '24 08:02 androiddan