title: How to restart android application from within application
body: <p>I have a requirement to restart the application when the user changes a preference. Clearing the stack doesnt help me since this doesnt cancel the backend service calls. I want to kill the application process itself. I am using </p>
  
  <pre><code>Process.killProcess(Process.myPid());
  </code></pre>
  
  <p>and it works for me to kill the application. But what i need is to restart the application. Means kill the process and trigger a new process so the application start fresh once again.</p>
  
  <p>Is there a way to do this? </p>
  
  <p>Thanks in advance.</p>