SUMMARY

In this chapter, you looked at various ways to interact with Windows Phone 7 devices. This included a discussion of the ways in which development for mobile devices differs from more traditional software development, and a look at the features you can expect in Windows Phone 7 devices.

You looked at how to consider device orientation in your applications, how to use the Back button, how to trigger vibration, and how to use the FM radio. Next, you took a look at the accelerometer sensor. Sadly, the accelerometer sensor is currently the only sensor that you can write code for with the release available at the time of writing this book. However, the generic techniques you learned in this chapter are likely to apply to all sensors as they become available (hopefully by the time you read this). In particular, the techniques you learned for simulating sensor data will be invaluable.

In the next chapter, you'll look at more platform-specific Windows Phone 7 features and how to create applications that fit into the framework you have available. There is some overlap with the subject of this chapter — for example, you could argue that multitouch is a hardware feature — and you'll look more at how to interact with the software features that the Windows Phone 7 environment provides.

EXERCISES

  1. A Windows Phone 7 device supports some of the following hardware features. Which of them can you guarantee that a device will support?
    1. Accelerometer
    2. Thermometer
    3. Compass
    4. Vibration
    5. Altimeter ...

Get Beginning Windows® Phone 7 Application Development: Building Windows® Phone Applications Using Silverlight® and XNA® now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.