You mean that you want your app to restart even if the user explicitly stops it and doesn't choose to restart it? Can I ask why?
Obviously the app itself cannot do this - if it is stopped then it isn't running any more and so can't restart itself. What you need is something else to restart it, either the operating system or some other process. I'm not an android developer so can't say whether there is a way of telling the OS that this app is so important it must be restarted if it isn't running. As a user I'd probably uninstall an app that simply respawned if I deliberately stopped it though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.