Research In Motion's (RIM's) share of the smartphone market declined to 12% in the second quarter of 2011, from 19% a year ago. Also, the company lost its No. 5 position in the worldwide ranking of mobile device vendors to ZTE. Demand for RIM's devices in the second quarter was impaired by an aging portfolio and delays in shipping products. In the coming quarters RIM will have to deal with increased competition to its messaging offering and manage a platform migration from BlackBerry 7 to QNX, says Gartner.