I need to classify blackberry devices based on OS version.
if BB5 and BB6 then {do this}
if BB7 and above then {do this}
I knew, BB 5 useragent looks like this :
BlackBerry9700/5.x.x.x Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/229
BB 6 onward useragent is :
Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; zh-TW) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.x.x.x Mobile Safari/534.1+
So, How can i classify 5&6 and 7&above?