Repro - Mobile Analytics for growth
日本語
Sign Up Back to Dashboard
  • System Requirements
  • Dashboard Guide
  • Development Guide
  • Release Notes
  • FAQ

Customize the user agent in WebView (Android)¶

Use setUserAgentString of WebSettings to customize the user agent.

The following is an example adding the string MY_CUSTOM_USER_AGENT to the beginning of the original user agent.

final WebSettings settings = webView.getSettings();
settings.setUserAgentString("MY_CUSTOM_USER_AGENT " + settings.getUserAgentString());

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.