Microsoft Corp. launched a legal attack aimed at fighting the explosive growth of cellphones powered by Google Inc.'s Android software, as the technology giant struggles to find its own answer to the shift away from traditional computers in favor of mobile gadgets.

The software company sued Motorola Inc., one of the biggest backers of Google's software, claiming the cellphone maker is infringing nine patents in handsets powered by Android.

While...