3 Ways to Kill an Application/Activity/Process in Android
来源:互联网 发布:java程序的入口是什么 编辑:程序博客网 时间:2024/05/21 15:48
Way 1:
System.exit(0);
Way 2:
android.os.Process.killProcess(android.os.Process.myPid());
Way 3:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
am.restartPackage("com.example.android.helloactivity");
System.exit(0);
Way 2:
android.os.Process.killProcess(android.os.Process.myPid());
Way 3:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
am.restartPackage("com.example.android.helloactivity");
- 3 Ways to Kill an Application/Activity/Process in Android
- ways to creat an object in javascript
- Three ways to implements an Android OnClickListener
- kill process in linux
- Reloading an activity in Android
- Android application framework 分析[in process]
- Is there a way to add a badge to an application icon in Android?
- Android Kill Process
- How to obfuscate an Android application
- Apply a theme to an Activity or application
- A Guide to Kill, Pkill and Killall Commands to Terminate a Process in Linux
- linux_A Guide to Kill, Pkill and Killall Commands to Terminate a Process in Linu
- android in practice_Process-to-process sharing
- Process of Starting an Activity
- How to embed an icon in a Qt application
- 3 ways to make your Flex application smaller
- about to search or kill the process and the port in the linux
- path to an application
- 内核sanitize_e820_map函数详解(征服内存管理模块的起点)
- Android 2.3 代码混淆proguard技术介绍
- 定时任务网站
- MTK主题风格
- 2010 - 02 - 10, Marriage
- 3 Ways to Kill an Application/Activity/Process in Android
- A Fall in Love Story
- A function for punbb
- Amazon's wish list service is amazing
- Android G2手机如何使用CMWAP上网
- Android Function: public static boolean isCmwap(Context context)
- A First Look at the Android Testing Framework
- Android 文件操作 读/写
- Android取用户屏幕大小