Question

Can we set UserAgent for any mobile browser like Mozilla, Crome, UC Browser etc.

I have gone through WebView.getSettings().setUserAgentString(newUA);

But It is for webview, My issue is I need to set UserAgent to all installed browsers, Not webview.

Pas de solution correcte

Autres conseils

That sounds like it would violate a lot of Android's sandboxing principles, so I'm going to have to go with not possible (unless the device is rooted perhaps). Chrome for Android already has this as a feature anyway.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top