1

At my company, we want to restrict Users (having Android Devices) to access only 1 application using Company Internet.

For example, when I'm in the company and I'm connected to the WiFi, I should be able to access only my company's Application.

Is this possible?

Vaibhav Shah
  • 33
  • 1
  • 7

2 Answers2

1

This would not be done using an app. You would use a network proxy or manage the proxy settings on the devices themselves.

Using a WebView you can restrict loading other urls with this code:

webView = (WebView) findViewById(R.id.webview);
webView.setWebViewClient(new WebViewClient() {
  public boolean shouldOverrideUrlLoading(WebView view, String url) {
    if(url.contains("*your url here*")) {
      view.loadUrl(url);
    }
    return true;
  }
});
Will Evers
  • 934
  • 9
  • 17
  • Apologies for misframing the question. Could you help with allowing only 1 app to connect on our company wifi? – Vaibhav Shah Nov 17 '16 at 15:19
  • 1
    Your app doesn't connect to wifi, your device does. You can write your app to only access one url. How are you accessing it? With a webview? – Will Evers Nov 17 '16 at 15:21
  • Yes Will- with webview. The intent is that we want users to only use company wifi for official purposes- which in this case are websites hosted on our xxx.company.com domains. – Vaibhav Shah Nov 17 '16 at 15:24
  • 1
    That's super helpful Will! :) Thank you! – Vaibhav Shah Nov 17 '16 at 17:35
1

You can create a Wi-fi network that only permit access to your domain.

That way all users connected in this Wi-fi network will not have internet connection in their apps except the company app.

fsnasser
  • 203
  • 4
  • 11
  • Hello @Felipe Request you to please elaborate on how I can create the wifi network that permits access to only particular domain? – Vaibhav Shah Nov 17 '16 at 20:14