Developing an App for Windows Phone 7: an Overview
Total Page:16
File Type:pdf, Size:1020Kb
1 Developing an App for Windows Phone 7: An Overview In This Chapter ▶ Developing apps for Windows Phone 7 ▶ Taking care of your customers after the app is in their hands he approach Microsoft has taken with its Windows Phone 7 platform is Tvery different from its approach with Windows Mobile. The Windows Mobile platform was targeted primarily toward businesses; the secondary audience was consumers who liked its computerlike user interface. The Windows Phone 7 platform, on the other hand, is targeted toward consumers with the expectation that employee demand, combined with some business-friendly features, will bring this device into the corpo- rate environment. Many professional app developers wrote apps for the Windows Mobile platform, now called Windows Phone Classic, under the proprietary specifications of companies for their employees. Sales volumes of the Windows Mobile platform grew in triple digits in the middle of the last decade. It competed well with the other smartphones available at the time, such as theCOPYRIGHTED BlackBerry and the Palm Treo. MATERIAL The overall smartphone marketplace, loosely defined as cellphones that could run third-party applications with the option of a mobile data connection for real-time Dig it updates, was growing very quickly. However, none of the al V isio existing competitors had the buzz that was seen when Apple n announced its iPhone. 005_9781118021750-ch01.indd5_9781118021750-ch01.indd 9 66/22/11/22/11 99:24:24 PMPM 10 Part I: So, You Want to Develop a Windows Phone App Initially, the iPhone was not technically a smartphone, because it didn’t accept third-party applications. But it came with enough cool apps to capture the imagination of consumers. Soon thereafter, Apple announced its iPhone Software Development Kit (SDK), and then the App Store, where consum- ers could acquire apps for their iPhone. This announcement drew a great response from professional and nonprofessional developers alike; they gener- ated apps to address problems many consumers didn’t even know they had! Many phone manufacturers raced their iPhone-killing phones to the market, but what really turned the tide was Google’s announcement about its Android smartphone platform. This was to be a virtual developer’s paradise, with extensive support tools and less bureaucracy than developers have to go through to get apps launched on the Apple App Store. Nothing riles the folks in Redmond, Washington, more than a competitive challenge, particularly in a marketplace that they believe should’ve been theirs in the first place. To respond to the iPhone and Android, Microsoft decided to start over with a new approach to mobile phones. Among its key strategic decisions for the phone: ✓ Standardize on the best hardware. Microsoft believed that it lost con- trol of how handset manufacturers were implementing Windows Mobile hardware, causing an unstable environment and an inconsistent user experience. No more. There are two screen sizes, and the processor and graphics processing unit (GPU) are state of the art and must be used by all manufacturers. This makes the life of a programmer easier. ✓ Leverage successful Microsoft platforms. In addition to the basics of phone calling, texting, and wireless e-mail, Microsoft believed that it could make its phone stand out by leveraging its other successful prod- uct lines. Windows Phone 7 uses “hubs” that give you convenient access to the Microsoft services, allowing you to bring your work and home computing together on the Windows Phone 7 platform when you’re on the go. ✓ Use familiar development tools. Many, if not most, application develop- ers have used Microsoft development tools. Microsoft has charged for these tools in the past, but to make it more appealing for nonprofes- sional developers, it’s offering a free version specifically for Windows Phone 7 users. We explore each of these approaches in more detail in this chapter and later chapters. 005_9781118021750-ch01.indd5_9781118021750-ch01.indd 1010 66/22/11/22/11 99:24:24 PMPM Chapter 1: Developing an App for Windows Phone 7: An Overview 11 Knowing the Tools You Need Regardless of your experience as a developer, you need certain tools to get started developing apps for Windows Phone 7. The basic tools are free, and we cover these in Chapter 5. If you want to get fancier, you can buy tools. We walk you through the steps to figure out what’s useful and download what you need. Microsoft also provides Windows Phone 7 app developers oodles of technical manuals, blogs, reference sites, videos, podcasts, and code samples. Chapter 6 introduces some of the most valuable tools in that “virtual library” known as the Microsoft Developer Portal. More important, we tell you where to find what you need as you need it. We dedicate Chapter 7 to Silverlight, the environment for applications. Silverlight is very convenient and powerful, and we go into detail on its capabilities. Developing a Basic App If you’re new to developing apps, we get you off and running in Part III, devel- oping some basic apps. These apps are really closer to widgets, small apps that do one thing and are almost always free. This part is all about getting you comfortable with the app development process. If you’re an experienced programmer, you may want to skip or just skim Part III. Taking It Up a Notch Starting with Part IV, we explore slightly more sophisticated applications. Chapter 12 introduces the accelerometer (a sensor that measures how fast the phone is moving); Chapter 13 is all about using location services that are on the Windows Phone; and Chapter 14 covers the sensors that use the phone’s orientation. Using these application programming interfaces (APIs) not only makes for interesting apps, but also gets you used to using any API that’s in the library. 005_9781118021750-ch01.indd5_9781118021750-ch01.indd 1111 66/22/11/22/11 99:24:24 PMPM 12 Part I: So, You Want to Develop a Windows Phone App Why develop for Windows Phone 7? There are numerous smartphone platforms, Microsoft offers several advantages for its each with a pitch for why you, a prospec- developers: tive developer, should want to write for that ✓ The development tools and systems used platform. In the mobile space, in addition to for Windows Phone 7 are the same ones Windows Phone 7, you can write apps for the that are used for PCs. Although Apple has following platforms: grown recently, Microsoft still sells eight or ✓ iOS from Apple for the iPhone: Development nine copies of Windows for every copy of on Apple’s iOS is considered by expe- Mac OS X. rienced programmers to be harder to ✓ The development environment used for the learn. This is an important consideration Windows Phone 7 is Silverlight. (Games for novice programmers. Plus, there are can be developed in XNA, but we don’t go over 300,000 apps in the Apple App Store. into detail on that in this book). Silverlight It is hard to stand out among that much application skills can be leveraged in other inventory. environments. ✓ Android from Google: Google positioned ✓ The support of SharePoint is unique among its Android platform as being programmer- smartphones. The Mobile Office apps are friendly, even more than being user-friendly. better than other options. This makes the This has made it very popular among devel- Windows Phone a strong competitor for opers. Although Apple has the largest heavy business users and in situations number of apps in its marketplace, Android where an enterprise buys phones for its is growing at a faster pace. employees. ✓ webOS from Hewlett-Packard: webOS has ✓ At the same time, Windows Phone 7 is a a great legacy with its origins as Palm. It strong competitor for gamers. Although isn’t clear how HP will leverage this legacy. the stereotype of gamers is different from HP is considered a great hardware com- that of enterprise users, Xbox LIVE fans will pany, but its reputation in software is mixed be drawn to using the Windows Phone 7 (and that’s putting it politely). platform. ✓ BlackBerry OS from Research In Motion: Microsoft has invested a great deal in making Research In Motion was promoting its appli- the Windows Phone 7 platform a success, and cation development for years before Apple it isn’t done yet. You have a chance to get in launched the first iPhone, and it still hasn’t on the ground floor by developing for Windows caught on. Many people find the application Phone 7. And this book gives you the tools you development environment to be even more need. restrictive than Apple’s, and many develop- ers complain loudly about that. 005_9781118021750-ch01.indd5_9781118021750-ch01.indd 1212 66/22/11/22/11 99:24:24 PMPM Chapter 1: Developing an App for Windows Phone 7: An Overview 13 Chapter 15 explores the Microsoft Push Notification Service within Windows Phone 7. This is an important subject if your app will ever need to communi- cate with apps or websites off the phone. If your app is entirely self-contained on the phone (like a calculator), you don’t need to use push notification. But if you want to get real-time information or to grab data from a website, push notification is the tool you use. Selling Your App Unless you select a narrowly defined target market for your handiwork and market it, the only customers you’ll get are your friends and family. You need to find a way to get your apps noticed. The Windows Marketplace offers some options to help your app be sorted correctly and made available in multiple geographic markets.