How do I get the real device in http_user_agent? When I use a WebView, I can get the real value like this:
[HTTP_USER_AGENT] => Mozilla/5.0(Linux; U; And
To complete the accepted answer, if you want the default user agent use System.getProperty("http.agent")
client.getParams().setParameter(CoreProtocolPNames.USER_AGENT, System.getProperty("http.agent"));