BlackBerry this week announced it would be getting out of the hardware business. When the iPhone came out in 2007, no one knew exactly what that meant. In fact, the CEO of Microsoft at the time, Steve Ballmer, publicly criticized it saying that it's too expensive. The lack of concern was just enough to throw them off their game for a couple of years. By 2009, when it became clear the iPhone was the future of cell phones, Microsoft and BlackBerry finally leapt into action. Unfortunately, it was too late at that point and Apple already owned the space.
Google, on the other hand, bought Android in 2005. When the iPhone was released in 2007, Google went back to the drawing board and then released its first Android smartphone a year later having learned from Apple's success. Google got in much earlier than Microsoft and BlackBerry, and that could explain why the company is still in the game.
BlackBerry isn't gone, though. The company still makes great software. They bought an operating system called QNX, which is widely used in cars and other embedded systems where the computer is mostly invisible.