Possible Duplicate:
How to restrict Android device to not open some specific site e.g.youtube, facebook
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.