Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry System.getProperty("browser.useragent")

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.

like image 472
TS.xy Avatar asked Jan 24 '26 14:01

TS.xy


1 Answers

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.

like image 120
Todd Avatar answered Jan 26 '26 15:01

Todd