Compartir a través de


Android Webview behind proxy

Lately I have been working on Android platform. If you are behind a proxy in your company and working with the simulator here are the steps to get the browser working

Settings -> Wireless Networks ->mobile networks-> access point names->telkila. Now enter the proxy server address and port (which will be 80).

However, if you are working with WebView control in your app then above will not work unless your code has following line in onCreate()

WebView.enablePlatformNotifications();

You might want to restart the emulator after this to test your app again.

Comments

  • Anonymous
    September 21, 2010
    The comment has been removed

  • Anonymous
    October 17, 2010
    Hmm... I have this code running on Android 2.1/2.2 simulator and an Android 2.1 device.

  • Anonymous
    April 19, 2011
    add this permission    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

  • Anonymous
    July 18, 2012
    Thanks Buddy! webView.enablePlatformNotifications(); Helped me :)