Retrieve user agent from device model, os or browser version

408 views Asked by At

I have a need to determine the User-Agent given the device model, os or browser versions. Is there any WURFL api which can be readily used for this purpose? Any other library? Please point me to the respective code snippets.

Thanks,

1

There are 1 answers

0
Kedarnath On BEST ANSWER

I was able to find the solution finally. There getUserAgent method defined in Device interface.

        WURFLUtils utils = wurflEngine.getWURFLUtils();
    Set<ModelDevice> mds = utils.getAllModelDevices();
    for (ModelDevice md : mds){
        System.out.println(md.getUserAgent());

    }