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.