AT&T sold a record number of smartphones in the last three months of 2012 despite the growing likes of Apple and Samsung.

The company sold 10.2 million smartphones in the last quarter of 2012. Its previous best quarter was the final three months of 2011, when it sold 9.2 million smartphones. AT&T didn't break down its sales, but the strong demand was likely due to the launch of the iPhone 5, which went on sale a couple of weeks before the quarter began, and new cell phones from competitors such as Samsung, Nokia and HTC.

AT&T was a U.S. also launch carrier for Windows Phone 8, which Microsoft put on sale in October. The results mean AT&T sold a total of 26.9 million smartphones in 2012, up from 25.3 million in 2011.

The company is due to report its full-year results next Thursday.