title: In Android, what's the difference between force stop and kill process
body: <p>In Android Studio, I can terminate a process. I can also kill process by using the <code>kill</code> command. So I want to know what the exact meanings are of the below methods:</p>
  
  <ol>
  <li>Terminate foreground application by Android Studio</li>
  <li>Terminate background application by Android Studio</li>
  <li>Remove app from recent app list</li>
  <li>Force stop the app through setting</li>
  <li>Kill process though <code>kill</code> command</li>
  </ol>
  
  <p>and how to write a robust app to make sure the app will not have any crash problems when the app has been killed by the user or the system. Thanks.</p>