We can get the user agent from the device by calling
System.getProperty ("browser.useragent")
This method is available for OS 4.7 +
I tested only some of the Blackberry simulators: 9530 (os 4.7), 9800 (os 6.0.0)
It works like a charm.
But as far as I know, on real devices, if the user changes the Blackberry browser, the user agent in the HTTP request to the server will be changed. For example, some of the Blackberry devices use the Firefox browser.
So I would like to know if the browser setting on the real device will change when we call System.getProperty ("browser.useragent"), will the return value change ???
Has anyone tested on a real device? or does anyone know anwser.
source
share