Skip to main content
main-content

Über dieses Buch

Microsoft’s Windows Phone 7 handsets have injected a new vibrancy into the smartphone marketplace and provided bold new opportunities for the Microsoft development community.

Take advantage of these opportunities with Beginning Windows Phone App Development, written specifically to help you learn the skills you’ll need to develop rich, functional apps for the Windows Phone 7 platform. Authors Henry Lee and Eugene Chuvyrov cover the very latest developments in the field—including the extended APIs offered in the new Mango platform update—so you'll have timely, accurate information at your fingertips.

Beginning Windows Phone App Development starts with the basics, walking you through the process of downloading and setting up the right development tools, including Visual Studio,Expression Blend, Silverlight SDK, and Windows Phone SDK. It then takes you step-by-step though the development process as you build and deploy a working application, complete with a sophisticated user interface. Finally, you'll receive step-by-step instructions on packaging and selling your applications through the Windows Phone Marketplace.

Inhaltsverzeichnis

Frontmatter

Chapter 1. Introducing Windows Phone and the Windows Phone Platform

This is an exciting time for mobile app developers as the smartphone race heats up between the major players: Microsoft Windows Phone, Apple iPhone, and Google Android. As a developer, you are faced with an amazing opportunity to develop a mobile application that can be sold to millions of consumers worldwide using any of these platforms. Gartner predicts that by 2014 the smartphone market will boom, and there will be billions of dollars at stake.
Henry Lee, Eugene Chuvyrov

Chapter 2. Building Windows Phone Applications

This chapter will prepare you with everything you need to get started with Windows Phone development. You will learn about the Windows Phone emulator, Visual Studio 2010 Express, and Microsoft Expression Blend 4. You will use these tools to create your first Windows Phone application.
Henry Lee, Eugene Chuvyrov

Chapter 3. Building Windows Phone 7 Applications Using Cloud Services As Data Stores

There’s lots of buzz today about cloud computing technology. By allowing you to offload infrastructure requirements, the cloud truly empowers you as a developer to focus on building an application.
Henry Lee, Eugene Chuvyrov

Chapter 4. Catching and Debugging Errors

As you develop Windows Phone applications, you must learn how to equip them to handle a number of exceptions that are unique to smartphones. Unlike a desktop computer, a Windows Phone includes devices over which you have little direct control, including GPS, an accelerometer, Wi-Fi, isolated storage, and a radio. A user can decide to turn off an onboard device to save power at any time. Isolated storage can run out of space. A resource, such as a cell tower, GPS satellite, or Wi-Fi router, might not be available. To identify and fix unexpected exceptions in an application, you need to know how to use the powerful debugging facilities of Visual Studio. To be sure that you have dealt with all of the bugs in your application, you need to know how to test it on a real device.
Henry Lee, Eugene Chuvyrov

Chapter 5. Packaging, Publishing, and Managing Applications

Every developer dreams of becoming an instant millionaire by creating an application that everyone loves to use. You will have that chance when you develop your own application and then package, distribute, and sell it to millions of Windows Phone users worldwide through the Windows Phone Marketplace.
Henry Lee, Eugene Chuvyrov

Chapter 6. Working with the Accelerometer

An accelerometer has many practical uses for applications that depend on the movement of a Windows Phone in three-dimensional space. With data from an accelerometer, you can steer a simulated car in a driving game or fly a plane in a flight simulator. You can capture motion such as a shake, punch, swing, or slash and mix this accelerometer data with a physics engine to create Wii-like games. Just for fun, you can build novelty applications to amaze your friends, such as a light saber simulation that makes Star Wars sounds as you swing your phone in the air. An accelerometer can even be used for business applications, such as a level for hanging a picture frame. Under the covers, the controller devices for games that run on consoles, such as the Wii controller, are nothing more than accelerometers wrapped in buttons and plastic.
Henry Lee, Eugene Chuvyrov

Chapter 7. Application Bar

When you’re ready to program your Windows Phone application in Visual Studio 2010, you’ll know what general features your application will provide. Each of the major application features will need to be accessible via a shortcut or some form of a navigation menu. For Windows Phone applications, Microsoft recommends that you use a standard Windows Phone Application Bar to provide shortcuts for most common tasks within the application. Metro UI design concepts for Windows Phones were covered in Part 1 of this book. The use of an Application Bar within the application helps ensure that these guidelines are properly observed.
Henry Lee, Eugene Chuvyrov

Chapter 8. The WebBrowser Control

It felt like false advertising when, just ten short years ago, cellular phone companies began to promote Internet access as a feature of their devices. As customers quickly learned when they tried to get online that their phones could only display web pages properly if they were written in Wireless Markup Language (WML) and not the traditional HyperText Markup Language (HTML) used in the vast majority of web sites. Very few sites could afford to build and maintain code in two separate languages, and as a result, web browsing on mobile phones did not take off until relatively recently.
Henry Lee, Eugene Chuvyrov

Chapter 9. Working with Controls and Themes

Every time you pass through an airport or a train station, you expect to see a myriad of signs directing you to vital information such as connecting gates, the direction of baggage claim, and the location of ground transportation. While the words on these signs are certainly important, perhaps just as important are the accompanying visual symbols. Our minds become so accustomed to visual elements that we often don’t need to read the words to understand a sign’s meaning. Furthermore, the presence of visual elements helps tremendously when we’re in another country where we don’t speak the language.
Henry Lee, Eugene Chuvyrov

Chapter 10. Integrating Applications with the Windows Phone OS

When a third-party application such as yours runs on a Windows Phone, it executes in an environment that is highly restricted. Windows Phone OS must be restrictive in order to protect unsuspecting users of mobile devices from potential malicious application behavior, which may include stealing personal data stored on the phone, dialing phone numbers without the user’s knowledge, or corrupting the data stores of other applications. One of the major restrictions that Windows Phone OS places on mobile applications is limiting them to their own execution environment, or sandbox, and not allowing them access to other applications’ space or the internals of the operating system. Sandboxing and other Windows Phone security features are covered in greater detail in Chapter 19.
Henry Lee, Eugene Chuvyrov

Chapter 11. Creating Trial Applications

Today many mobile software vendors maintain two versions of their application code: one for the trial version and another for purchase. The code base for the trial version typically includes some but not all of the functionality of the full version. It also includes code that urges users to upgrade to the full version of the product. The Windows Phone platform, however, eliminates the need to maintain a separate code base for trial software thanks to the handy IsTrial method. The IsTrial method of the Microsoft.Phone.Marketplace.LicenseInformation class provides the functionality you need to create a trial version. Microsoft.Phone.Marketplace.LicenseInformation is a sealed class that contains the methods you’ll use to test your application. You already learned how to deploy applications to the Windows Phone Marketplace in Chapter 5. In this chapter, you will learn how to add a trial option to the applications you deploy so that potential customers have a chance to try your products before they buy them. The IsTrial method determines whether an application is running under a trial or a full license, allowing you to limit the functionality of your application based on the result that IsTrial returns.
Henry Lee, Eugene Chuvyrov

Chapter 12. Internationalization

With the latest release of Windows Phone OS, support has been added for 22 display languages, up from 5 in the first release of Windows Phone 7. Windows Phone devices now fully support the English, Chinese, Japanese, Russian, and Korea languages, among many others. This, of course, is wonderful news for Windows Phone developers—the greater the customer base, the more potential revenue and exposure for their applications. However, there is just one small gotcha when taking mobile application development to the world: the vast majority of non-English-speaking customers would like to use applications translated into their languages.
Henry Lee, Eugene Chuvyrov

Chapter 13. Isolated Storage

In Chapter 3, you learned that Microsoft Azure provides a reliable place to store and access data, but using it requires Internet access. Sometimes it’s more efficient to cache frequently accessed data on the Windows Phone device itself.
Henry Lee, Eugene Chuvyrov

Chapter 14. Using Location Services

All Windows Phone devices are required to ship with a GPS receiver. As a result, you can develop applications that are location-aware. The GPS receiver on the Windows Phone device receives the data in the form of longitude and latitude coordinates.
Henry Lee, Eugene Chuvyrov

Chapter 15. Media

In today’s information age, content is everything. Think of the multitude of web sites you have visited, and reflect on those that offered high-quality content vs. those whose content you did not trust. In terms of media files, consider YouTube, which provides access to everything from wacky personal videos to substantive educational videos to the masses via the Net. Now smartphones also have the ability to play high-quality movies, music, and more, anywhere at any time. What was once possible only on a powerful desktop computer can now be done with the smartphone that you carry around with you, regardless of whether you are near a cell tower or have access to a Wi-Fi connection.
Henry Lee, Eugene Chuvyrov

Chapter 16. Working with the Camera and Photos

Today, consumers assume that any cell phone they purchase will be able to take photos, and that the quality of those photos will be close to those of an entry-level digital camera. Furthermore, the latest mobile devices allow for the integration of their photo capabilities with the various applications that run on these devices. For instance, taking a picture with the phone, adding a caption to it, and immediately uploading the photo to a social media website are common capabilities of all smartphone platforms today.
Henry Lee, Eugene Chuvyrov

Chapter 17. Push Notifications

One day in the somewhat distant future, smartphones and other mobile devices will ship with batteries that last for weeks without the need to recharge them. But until that day arrives, Windows Phone software developers must write applications that use energy sparingly, since a resource-intensive program, such as one that uses the built-in cellular or Wi-Fi radio continuously, can quickly drain a Windows Phone battery. To prevent this from happening, Microsoft has built a number of features into the Windows Phone application platform to ensure that the phone battery lasts as long as possible. One such feature allows applications to appear as if they are constantly running in the background, providing updates about the weather or what your friends are up to. These applications subscribe to a central notification service that keeps track of all connected devices and sends alerts and messages to those devices, such as when to buy or sell stocks or where to take cover from bad weather.
Henry Lee, Eugene Chuvyrov

Chapter 18. Reactive Extensions for.NET

For developers, the computing world of today demands the adoption of concurrent approaches to programming, much more so than just a few short years ago. Computer users expect ever-increasing computational power from their electronic gadgets, including their mobile devices. Unfortunately, it seems that the only way manufacturers will be able to increase computational speed in the near future is through adding extra processors (instead of making a single processor faster, as had been the case over the last few decades). In the case of processors on personal computers, the industry may soon be hitting a proverbial brick wall, with the maximum computational capacity available on a single processing unit close to being exhausted. An average personal computer today already comes with two or more processing units, and the number is likely to increase in the future.
Henry Lee, Eugene Chuvyrov

Chapter 19. Security

Because everything about the design and operation of Windows Phone targets consumers, it is only natural that Microsoft has carefully thought through the ways to protect Windows Phone users from both intentional and unintentional harm. Windows Phone ships with a compelling set of built-in security features that strive to accomplish that goal.
Henry Lee, Eugene Chuvyrov

Backmatter

Weitere Informationen

Premium Partner

BranchenIndex Online

Die B2B-Firmensuche für Industrie und Wirtschaft: Kostenfrei in Firmenprofilen nach Lieferanten, Herstellern, Dienstleistern und Händlern recherchieren.

Whitepaper

- ANZEIGE -

Best Practices für die Mitarbeiter-Partizipation in der Produktentwicklung

Unternehmen haben das Innovationspotenzial der eigenen Mitarbeiter auch außerhalb der F&E-Abteilung erkannt. Viele Initiativen zur Partizipation scheitern in der Praxis jedoch häufig. Lesen Sie hier  - basierend auf einer qualitativ-explorativen Expertenstudie - mehr über die wesentlichen Problemfelder der mitarbeiterzentrierten Produktentwicklung und profitieren Sie von konkreten Handlungsempfehlungen aus der Praxis.
Jetzt gratis downloaden!

Bildnachweise