public boolean detectBlackBerryHigh ( ) { //Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser if ( detectBlackBerryWebKit ( ) ) { return false ; } if ( detectBlackBerry ( ) ) { if ( detectBlackBerryTouch ( ) || ( userAgent . indexOf ( deviceBBBold ) != - 1 ) || ( userAgent . indexOf ( deviceBBTour ) != - 1 ) || ( userAgent . indexOf ( deviceBBCurve ) != - 1 ) ) { return true ; } else { return false ; } } else { return false ; } }
Detects if the current browser is a BlackBerry device AND has a more capable recent browser . Excludes the Playbook . Examples Storm Bold Tour Curve2 Excludes the new BlackBerry OS 6 and 7 browser!!