// If user provided the requested info
if (args.TaskResult == TaskResult.OK)
// Create, initialize and show SMS composer launcher
SmsComposeTask smsComposeTask = new SmsComposeTask();
smsComposeTask.To = args.PhoneNumber;
"Hello! Just discovered very good game called Catapult Wars. Try it by yourself and see!";
// Show the chooser
This is the event handler for the new menu item. This handler launches the Phone Book application, gets back the chosen number and sends an SMS to this number.
This concludes the task and the exercise.
Now our game is enriched with tombstoning and state reloading features and allows share its score with a friend via SMS.
This lab introduced you to developing applications for the Windows Phone 7™ platform using the XNA Framework. In the course of this lab you created an XNA Game Studio game for Windows Phone 7™, loaded the game’s resources, took care of the input, updated the game state and added game specific logic. Then we enriched the game with tombstoning and state reloading features and, after all added a possibility to share the game score with a friend via
Page | 101