O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing an SMS With the SmsComposeTask

The SMS compose task is used to launch the built-in Messaging app, allowing the user to create a new SMS message.

Note

The message is not sent until it is initiated by the user.

You can optionally specify recipients and a message body, which are prepopulated in the new message, as shown in the following excerpt:

SmsComposeTask smsComposeTask = new SmsComposeTask                                    {                                        To = "885729",                                        Body = "Hi from Windows Phone!"                                    };smsComposeTask.Show();

Sample Overview

Example code for the SmsComposeTask can be found in the SmsView page and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required