This feature is often requested, but currently not implemented. To be able to implement this, we need a large list of User-Agent strings with informations about the corresponding device. I do not think we get this list, but we should be able to implement it partly (on demand).
In the last days, i've thought about to implement a set of known fragments, so that you can write something like this:
UserAgentStringParser parser = UADetectorServiceFactory.getResourceModuleParser();
UserAgent ua = parser.parse(anyUserAgentString);
if (ua.getKnownFragments().contains(KnownFragments.GT_P1000M)) {
System.out.println("Seems to be a Galaxy Tab GT-P1000.");
} else if (ua.getKnownFragments().contains(KnownFragments.IPAD)) {
System.out.println("Seems to be an iPad.");
} else if (ua.getKnownFragments().contains(KnownFragments.IPHONE)) {
System.out.println("Seems to be an iPhone.");
}
If this feature could help you then please participate. This feature will be discussed on https://github.com/before/uadetector/issues/20. Any feedback or help is very appreciated.
(I'm the author of UADetector.)