Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于RecoveryHandler killProcess的疑问 #22

Open
ruijun opened this issue Mar 21, 2017 · 1 comment
Open

关于RecoveryHandler killProcess的疑问 #22

ruijun opened this issue Mar 21, 2017 · 1 comment

Comments

@ruijun
Copy link

ruijun commented Mar 21, 2017

@Sunzxyong 你好

RecoveryHandler里面的killProcess方法调用了:

android.os.Process.killProcess(android.os.Process.myPid());

System.exit(10);// 实际是调用了Runtime.getRuntime().exit

起到杀进程的作用,为什么不直接调用Runtime.getRuntime().exit(10)呢?

@Sunzxyong
Copy link
Owner

效果是一样的,只是不同调用方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants