this.finish() in Activity only stop and destroy this activity, application still staying background (check by hold HOME button)
I used:
System.exit(0);
but it still appear there!
That's how Android works. The user/developer is not given any way to actually exit the application. When you call 'finish', the application stack is just pushed to the background. It still exists in the memory. Android itself decides when to close the application(i.e. remove its instance from the memory) and generally this is done when your application becomes the oldest application which was not used for the longest time.

this.finish()主要是对Activity,当前的Activity结束了,但是整个Application还是在内存中运行,此时Application就成为了background进程,System.exit(0)是结束当前进程

更多相关文章

  1. Android中的进程生命周期
  2. Android跨进程bindService与callback
  3. Android的IPC机制和多进程开发模式
  4. Android进程与线程的概念
  5. IDA Pro 远程调试Android进程环境配置
  6. Android进程级别与如何防止服务进程被回收

随机推荐

  1. android 文件系统分析
  2. Android(安卓)Wifi模块学习
  3. Google Android(安卓)SDK 2.1正式发布
  4. 系出名门Android(3) - 对话框(Dialog)和
  5. Android之BroadcastReceiver
  6. Android中SQLite应用详解
  7. 浅谈Android(安卓)动画,带你进入动画的世
  8. Android(安卓)默认Tab标签大小及间距修改
  9. 在Android上实现WLAN的一点理解
  10. Android调用WebService之服务端实现(一)