Go to Faculty Home /   Curriculum Resources /  Windows Phone 7 Sensors and XNA Subscribe

Windows Phone 7 Sensors and XNA

This tutorial set is designed for audiences who have worked with the XNA Framework API and are interested in programming with sensors on the Windows Phone 7 device.

More specifically, the tutorials are designed for faculty members in higher education who have worked with XNA and are interested in including Windows Phone 7 (WP7) as part of their courses or research programs. The tutorials are designed to illustrate the details of working with the Wp7 sensors. It is assumed that faculty members will have their distinct requirements for abstraction. The tutorials do not attempt to wrap or hide the sensor APIs.

The tutorial does not attempt to address any application-level issues (e.g., game-design, game-play), or general issues concerning programming with the XNA Framework. General developers in the XNA community may find the tutorials to be helpful as an initial guide to working with the sensors on the Windows Phone 7 device.

Kelvin Sung
Kelvin Sung
Computer and Software Systems Professor
University of Washington

Kelvin Sung received his Ph.D. in Computer Science at the University of Illinois at Urbana-Champaign in 1992. He came to UWB from Alias|Wavefront (now part of Autodesk) in Toronto, where he played a key role in designing and implementing the Maya Renderer. Kelvin’s research interests are in studying the role of technology in supporting human communication.
Pinch Zoom and Touch Panel: the phone touch screen
  • Touch panel: press, move.
  • Gesture: Tap, Drag, Pinch, Flick, etc.
Emulator: supports all functionality except pinch zoom.
Orientation: portrait vs. landscape orientations
  • Application locks orientation vs. user phone control.
  • Portrait, left/right landscape modes.
Emulator: supports all functionality.
Accelerometer: the X/Y/Z accelerometers
  • Thread-save programming interface.
  • Range and values of accelerometer readings.
Emulator: no support for accelerometer. This demo does not work on the emulator.
The Camera: camera and photo chooser tasks
  • Camera and Photo Choose as separate Tasks.
  • Import image and convert to Texture2D.
Emulator: supports all functionality. The camera on the emulator does not take actual photographs.
GPS: GPS receiver, geo-position, and resolving civil addresses
  • Receiver setup.
  • Triggered events.
  • Civic address resolution (future).
Emulator: no support for GPS. This demo does not work on the emulator.
Bluetooth: Not supported in First WP7 Release.
System Requirements and Installation
Development Environment: Here are the detailed step-by-step guide for setting up the environment to program WP7 devices.
  • WP7 Development Tool access/download.
  • Windows Phone Market place registration details.
  • Unlocking your phone for development. IDE download and setup.

Related Curriculum Resources

| | |