title: Retrieve User-Agent programmatically
body: <p>Is there a way to retrieve Browser's user-agent without having a <code>WebView</code> in activity?</p>
  
  <p>I know it is possible to get it via <code>WebView</code>:</p>
  
  <pre><code>WebView view = (WebView) findViewById(R.id.someview);
  String ua = view.getSettings().getUserAgentString() ;
  </code></pre>
  
  <p>But in my case I don't have/need a webview object and I don't want to create it just for retrieving user-agent string.</p>