07-27-2010 11:19 AM - edited 07-27-2010 11:27 AM
I've been asked how to get the browsers User Agent String from within a Java application and thought it would be a useful answer to share with the community.
Within a Java application you can call System.getProperty("browser.useragent"). This will return the user agent string used by the browser on the device.
Here is a link to the Javadocs: