Reputation: 20670
I am writing an application for Android devices, Now I want to implement the functionality that if my application 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
Upvotes: 1
Views: 1110
Reputation: 2254
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.
Upvotes: 1