How to restrict Android device to not open some specific site e.g.youtube, facebook
I am writing an application for Android devices, Now I want to implement the functionality that if my applicatio开发者_如何转开发n is installed on the device than it is restricted to open youtube or facebook.
Because this application is for employees and my client do not want that his emplyees waste their time in youtube or facebook. I tried to find some help on google but received no good source.
thanks
I'm not 100% sure, but you could try creating entries in the /etc/hosts
file of the device to redirect the user to another destination. You/your app will need root privileges to edit the file.
Beside the webbrowser(s), don't forget to check if it's possible to use the facebook and youtube apps from the market.
精彩评论