HTC garnered a good reputation in the smartphone world years ago with its innovative Windows Mobile handsets. It put a distinctive homescreen "face" on those phones that would eventually become the Sense UI of today. The company saw the writing on the wall early about the wane of Windows Mobile and was one of the first OEMs to jump on the Android train. It would be equally correct to say that HTC had as much to do with the rise of Android as to say that Android fueled HTC's growth.
The HTC market cap is currently almost $34 billion, with Nokia sitting at just under $33 billion. RIM is quite a distance behind these two with a cap of only $28.5 billion.