Via BGR:
According to estimates from analysts at Trefis, Microsoft’s patent royalties from Samsung and HTC alone totaled as much as $792 million in the second quarter, more than making up for the difficulties Windows Phone has had gaining traction.
Remember, that $800M figure is just for Samsung and HTC. Add the deals it has with most other Android device makers, Microsoft is looking at billions every year. I guess this explains how they can spend $400M trying to launch Windows Phone and the Nokia Lumia.