Add a method to detect BlackBerry OS version