I am building an Android app to display content feed from a server. The server is a mobile website (like http://m.google.com) which tracks the traffic from various mobile cl
When you use the web view to access the user-agent, make sure you run the
new WebView(this).getSettings().getUserAgentString();
on the UI thread.
If you want to access the user agent in the background thread. use
System.getProperty("http.agent")
To check whether a user-agent is valid or not use this https://deviceatlas.com/device-data/user-agent-tester