code: public boolean detectBlackBerry()
     {
        if (userAgent.indexOf(deviceBB) != -1 ||
                 httpAccept.indexOf(vndRIM) != -1)
           return true;
  
        if (detectBlackBerry10Phone())
           return true;
  
        return false;
     }
docs: Detects if the current browser is any BlackBerry. Includes BB10 OS, but excludes the PlayBook.
  
  @return detection of Blackberry