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(安卓)进阶解密读书笔记1
  2. Android(安卓)实现ListView 3D效果 - 1
  3. android frida 检测_Android逆向之hook框架frida篇
  4. android framework 启动流程
  5. Android(安卓)GPS获取当前经纬度坐标
  6. Android(安卓)Application
  7. Android核心分析(21)----Android应用框架之AndroidApplication
  8. Android启动过程深入解析
  9. original-package

随机推荐

  1. Choreographer 翩翩起舞
  2. android listview 相关
  3. Android android下的短信发送器
  4. Android 开机画面
  5. android监听软键盘退格(删除)事件
  6. Android 图片倒影和setXfermode
  7. Android中TextView跑马灯没效果解决
  8. ANDROID 单元测试
  9. Android 抖动效果
  10. Android更新Ui的几种方法和见解