BlackBerry Java program Development, User Agent is required to manually set, so more flexible.
First Use System.getproperty ("Browser.useragent") to obtain the user agent data as follows:
For example: "mozilla/5.0" (BlackBerry; U BlackBerry 9800; EN) applewebkit/534.1+ (khtml, like Gecko) version/6.0.0.246 Mobile safari/534.1+ "
Then use Httpconnection. Setrequestproperty () Sets the user Agent property.
For example: Httpconnection.setrequestproperty ("User-agent", "profile/midp-2.0 configuration/cldc-1.0");
Reference: How To-retrieve information about the BlackBerry Browser
Http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_-_Retrieve _information_about_the_blackberry_browser.html?nodeid=1033750&vernum=0
How to detect the BlackBerry Browser
Http://supportforums.blackberry.com/t5/Web-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862?IID=DEVSF30