You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to kill all app's processes via BroadcastReceiver which should be started in Application.onCreate() and call Runtime.getRuntime().exit(0) if it catches required intent -> every app's process will catch this broadcast and all of them will be destroyed.
Also, what about scheduling relaunch of the process via AlarmManager with some delay? I am afraid that calling Runtime.getRuntime().exit(0) (BTW, you can use System.exit(0) which calls Runtime.getRuntime.exit()) might not be fast enough and because you are actually starting default activity or some user intent before calling exit(0) and VM can try to launch it before calling exit(0) -> undefined behavior (there is a chance that process will be killed, but new activity won't start, at least I saw such reports in question about app restart on SO).
I have an application which components are running in two separated processes. Can ProcessPhoenix kill both of the processes at the same time?