We are able to get the user agent from device via calling
System.getProperty("browser.useragent")
This method is available for OS 4.7 +
I only tested it on some of the Blackberry simulators: 9530 (os 4.7), 9800 (os 6.0.0)
It works as a charm.
But as far as I know that on real devices, if user changes the blackberry browser, the user agent in the http request to server will be changed. For instance, some of the blackberry devices use Firefox browser.
Therefore I would like to know, if browser setting is changed on the real device, when we call System.getProperty("browser.useragent"), will the return value change???
Has anyone tested on the real device? or does anyone know the anwser.
You could test this out in a Simulator of your choice by creating an App that logs or prints to screen the value of System.getProperty("browser.useragent") then making your noted change in the simulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With