本文介绍了如何在用户打开YouTube的杀Android的过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am writing an application and a feature is that if the user opens youtube.com then not allow him to do this.

So I planned to kill the Android process if the user try to open it. I know that this code kills the process

android.os.Process.killProcess(pid);

but How can I get pid(process id) of process if it open youtube. The problem is to get process id which opens youtube.

解决方案

Fortunately, malware authors have limited ability to do things like this.

Fortunately, this is impossible, at least on Android 2.1+.

Only if you have rights to kill that process. Fortunately, you do not have rights to kill that process.

这篇关于如何在用户打开YouTube的杀Android的过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 23:19