Change the user agent of webview
String newUA="Foo/"; // Change this to desired UA
like
String newUA= "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/20100101 Firefox/4.0";
mWebView.getSettings().setUserAgentString(newUA);
More Related Contents:
- How do I get the web page contents from a WebView?
- Clicking URLs opens default browser
- WebView android proxy
- Playing HTML5 video on fullscreen in android webview
- Webview avoid security alert from google play upon implementation of onReceivedSslError
- Disable scrolling in webview?
- Load HTML file into WebView
- enable/disable zoom in Android WebView
- How to handle RTL languages on pre 4.2 versions of Android?
- WebView link click open default browser
- How to add “Go Back” function in WebView inside Fragment?
- Loading Youtube video through iframe in Android webview
- Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?
- Scroll webview horizontally inside a ViewPager
- Android WebView, Scaling Image to fit the screen
- handling links in a webview
- Set loadURLTImeOutValue on WebView
- How to load html string in a webview?
- Kitkat kills: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png
- Android : Html Anchor Link works only once in webview
- Upload an Image from camera or gallery in WebView
- Support for other protocols in Android webview
- How to clear cookies and cache of webview on Android when not in webview?
- Intercept and override HTTP requests from WebView
- How to get loaded web page title in Android WebView?
- Android – Open target _blank links in WebView with external browser
- Letting WebView on Android work with prefers-color-scheme: dark
- Flutter – How to download files in WebView?
- Why Bitmap to Base64 String showing black background on webview in android?
- Android WebView Scrollable