Also, it's unclear that success is measured by direct profit from that project. For example, the world with Android is clearly much more promising for Google's continued revenue growth than one without Android. Mainly, Google is the only company with the software chops to write and maintain iPhone-clone software that even vaguely works and the cash and testicles to negotiate with carriers. If Google didn't continue to bang hard on Android, all the non-iPhone smartphones would suck fairly seriously, and Apple would probably cut pretty seriously into Google's ad profits, despite Apple's ads not being as effective, purely because Apple controlled the dominant smartphone platform. Apple might also have a much stronger influence over the tablet web experience, beyond than just having written the first tablet web browser that worked.
(Disclaimer: I like iOS better than Android, having owned both.)