Windows Phone 7 is a dramatic shift in focus for Microsoft, for both enterprise users and consumers. Windows Mobile 6.5 was rewritten with the consumer in mind to create Windows Phone 7. Microsoft has greatly simplified the user interface and made it so that all Windows Phone 7 devices have the same look and feel. They have also centralized application management into a Marketplace with tight control over the applications that are available to install on the phone. This makes the phone a much more stable platform, but eliminates a convenient management path for enterprises to install their own custom applications. That doesn’t necessarily leave the enterprise user out in the cold though. There are a lot of features within the phone that can work well for an enterprise user.
Windows Phone 7 has the first class support of Microsoft’s Office family of products. Every Windows Phone comes with Word, Excel, Outlook, PowerPoint, and OneNote built-in at no additional fee. Each of these applications is vital to the enterprise user.
Although there are many other features of the phone that come built-in out of the box, we will focus our attention on the enterprise features of the phone. These include the following:
Overview of the controls
Working with e-mail, contacts, and calendars
So, let’s begin with the overview of the phone controls.
With Windows Phone 7, Microsoft wanted to create a phone that is familiar no matter which device manufacturer made it. They wanted to have a single user interface that the consumer and developer alike could count on being available. In addition to this user interface, they wanted to make sure that the physical device had the same user input controls across the board. This means that whether our phone is a Samsung Focus or an HTC HD7, it will still have the following:
A 480x800 pixel resolution capacitive 4-point multi-touch screen. That means no stylus is required.
A back button
A start button
A search button
A power/sleep button
A camera button
Volume up and down buttons
In the past, Windows Mobile has had a host of different sized and shaped screens available. This made developing applications that ran well on all devices a challenge. With Windows Phone 7, Microsoft defined a single set of hardware and software requirements allowing developers to focus more on their applications and less on testing in the various hardware configurations available.
The single screen size is just the beginning. The Back button is a button that programs can take advantage of for their own navigation controls. This is accomplished simply by capturing the back button tapped event and handling it in our own programs. Although we won’t do this in any of the samples in this book, there is an excellent example available on Channel 9’s website at the following URL:
The Start button takes us to the phone’s start screen, closing the application currently running. Through a process named tombstoning, an application can be revived to the state it was in before the application was closed. We will not discuss tombstoning in this book, but an excellent description and example can be found at the following URL:
Camera of at least 5-megapixels and flash
Location—GPS combined with Web and Cell Tower information
A 1 GHz ARM v7 “Cortex/Scorpion” or better processor
A DirectX 9 rendering-capable GPU
256 MB of RAM
At least 8 GB of Flash Memory
Ambient light sensor and proximity sensor
Previous versions of Windows Mobile and Pocket PC were based on a stylus driven screen. The stylus had a very precise location on the screen similar to a mouse cursor. Windows Phone 7 changes that to a touch screen that uses your fingers as the main source of location input. This makes the touch location less precise than the stylus. At the same time though, a stylus input only allowed for a single tap point or gesture. With a 4-point capacitive touch screen multiple fingers used in unison on the screen can accommodate many different input ideas. Those ideas or gestures can be pinching fingers to zoom out or spreading fingers apart to zoom in. We can also put two fingers on the screen and rotate them to cause the underlying user input to turn. This is an important aspect to keep in mind when developing applications and websites for Windows Phone 7.
Microsoft Outlook is the backbone of the workplace. Since the early Pocket PC’s, Office Mobile has been around and Outlook Mobile has been a staple in this application suite. Windows Phone 7 continues this tradition by including Outlook Mobile as a premier application on the phone.
Outlook Mobile is the only Office Mobile application that is not found in the Office Hub. In fact, Outlook Mobile is split up into three separate parts on the phone:
1. Outlook e-mail
When setting up the phone, the user is asked to provide their e-mail information. One of the options for e-mail is adding an Exchange account. When you add a Microsoft Exchange account to your phone then your e-mail, contacts, and calendars will be synchronized between the Exchange server and your phone.
In a Windows domain, all user accounts and account information are stored in Active Directory. In Active Directory, the user must have ActiveSync enabled on their account before Windows Phone 7 will sync with Exchange. Configuring Active Directory for ActiveSync is beyond the scope of this book, but for instructions, please visit Microsoft TechNet at the following URL:
2. Scroll down and select Settings.
3. On the System menu, select Email & accounts.
4. Select Add an account.
5. The second option on the ADD AN ACCOUNT page is Outlook. Select that option.
If all goes well, you’ll be connected to your Exchange server.
Windows Phone 7 will sync content from e-mail, contacts, and calendar after configuring Outlook. We can specify which of these three we want to synchronize by going into the settings for your e-mail account. To get to the settings for your Outlook account, follow these directions:
1. From the main Windows Phone 7 screen, press the right arrow to go to the full menu.
2. Scroll down and select Settings.
3. On the System menu, select Email & accounts.
4. Select your Outlook account from the list provided.
Download new content
Download email from
Content to sync
An option for Server requires encrypted (SSL) connection
The Content to sync option has three checkboxes: one each for Email, Contacts, and Calendar, as shown in the following screenshot:
From here, we can decide what gets synched with our phone. The other option that gets used a lot is the Download email from option (shown in the preceding screenshot). This is where we can decide how long to keep an e-mail on the phone. The options available are as follows:
the last 3 days
the last 7 days
the last 2 weeks
the last month
Synchronizing with Exchange can only happen over the air, through either Wi-Fi or a cellular network. We can specify when the phone will check for new content. The options available are as follows:
as items arrive
every 15 minutes
every 30 minutes
The option for as items arrive will tell the Exchange server to push the e-mail directly to the phone. This means that the phone does not have to poll the server for requests on a schedule.
The phone can be connected to a PC using the Zune desktop software. This allows a consumer to set up a synchronization of media content to the phone. This includes music, videos, and pictures being sent to or from the phone. However, the phone will not sync to Exchange through the Zune desktop software. The Zune software can be downloaded from the following URL:
Appointment reminders come up on the phone just as they do with the desktop version of Outlook. The phone also has a feature where we can specify that we are running late to a meeting. This sends a notification to the meeting organizer letting them know of the delay.
We can create new calendar events by following these directions:
1. Open the Calendar either from the main start screen or from the all programs screen, depending on how the phone is set up.
3. The first field will be blank and have the cursor in it. This field is for the subject of the appointment.
4. The second field is for the location of the appointment.
5. If you have multiple accounts set up on your phone that allows calendar events, the third field will allow you to select the account. This will default to the Exchange server account typically called Outlook.
6. Ensure the start date, start time, and length are correct, and click on the save icon at the bottom.
The recurrence of the meeting
Your status (free, tentative, busy, out of office)
A button to allow us to add someone to the meeting.
On the main calendar screen, appointments from different calendars, such as multiple Outlook accounts, will appear in different colors on the screen, as shown in the preceding screenshot. This is convenient when glancing at a daily schedule to know what times and days are booked.
Multiple Exchange accounts crop up a lot in consulting scenarios. Having multiple colors on a calendar can make it easy to tell that green appointments are for XYZ Corp while purple appointments are for ABC Inc. It’s yet another way that Windows Phone 7 allows us to just glance at the screen and know the information we need.
The People hub on the phone is one of the main selling points of the phone. This section allows not only a collection of names, phone numbers, addresses, and e-mail addresses, but it also allows integration into Windows Live Messenger status updates as well as Facebook status updates.
This integration will allow the contacts to have their avatar icon associated with their name in your phone. It also allows, at a glance, a view of people and what they are doing.
Although names and addresses will be synchronized between Exchange and the phone, we can still add new people to the phone. To add new contacts, follow these directions:
1. Tap on the People hub, either from the main start screen or from the all applications list.
2. Next to the word all is a graphic icon to search contacts and one to add a contact. Click on the + sign to add a contact.
3. This will open the New Contact dialog.
4. From here, we can add a photo from our phone if we have a photo already taken, or we can take a new photo if we happen to be standing right in front of the person.
5. Click on the + sign next to name and enter the person’s First, Last, Middle, Nickname, Title, and Company information.
6. Click on the check mark to save changes.
7. Next, we can select the Account that we want to save this contact to.
8. Finally, we can add phone numbers and e-mail addresses, as well as specify a ringtone and other information.
9. The other information includes the following options:
10. Click on the save icon at the bottom of the screen to save the contact. After the next sync with the Exchange server, this contact will also appear on our desktop.
Office Mobile has been around in various forms since 2000, when it was introduced for the Pocket PC platform. At that time, it was called Pocket Office, but the core Microsoft Office functionality was there in the form of Pocket Word, Pocket Excel, and Pocket Outlook. Over the years PowerPoint and OneNote were added, and the prefix Pocket was changed to the suffix, Mobile.
Today the Office Mobile application suite, with the exception of the Outlook features, lives in an Office Hub on Windows Phone 7. This is where we can find all of our files for viewing and editing on the phone. There are three main sections to the Office Hub, which are as follows:
3. SharePoint Workspace Mobile
There’s been a mobile version of OneNote for Windows Mobile in the past; the version that comes with Windows Phone 7 is truly worthy of the name OneNote. We can synchronize notes with SkyDrive or through SharePoint.
OneNote is a place for storing notes without having to worry about formatting. OneNote is comprised of notebooks. Notebooks have sections, and sections have pages.
There are some limitations on the phone version, such as that we cannot create a new notebook or section on the phone, but we can open, view, and edit any pages in any current section. Also, we can add new pages to existing sections in the notebooks we have on the phone.
So, how do we get a new notebook on the phone? From the desktop version of OneNote, create a new Web Notebook. This will create a new notebook and store it on SkyDrive. Once the new notebook has been created, we can open it from our phone by following these instructions:
1. Open Internet Explorer Mobile.
2. Go to the following URL:
3. Sign in with the Live ID used to save the OneNote notebook.
4. Navigate to the folder that has the OneNote notebook.
5. Select Open in OneNote.
This will open the notebook in OneNote on the phone, as shown in the following screenshot:
The text in OneNote can also be formatted in bold, italics, underline, and strikethrough. We can also use a yellow highlighter background color. This is accomplished by selecting the format option from the menu at the bottom of the screen.
This is the section of the Office Hub that contains the Office documents that are located on your phone and not synchronized anywhere else. This section is split into three parts for the three main types of files in Office.
Microsoft Word is a word processor that just about everyone uses. Even if someone doesn’t use Microsoft Word, chances are the word processor that they use will output to Microsoft Word format. Word Mobile for Windows Phone 7 can open and perform basic editing of Word Document files (
DOCX format files), Rich Text Format files (
RTF), and simple text files (
The options for modifying the styles of a document are fairly limited. We have six formatting options, which are as follows:
5. Font size increase
6. Font size decrease
We also have three different highlight colors: yellow, green, and red. Finally, we also have a choice of three different font colors, including orange, green, and red. When editing a document, double tap on a word to select it. Then add one of these formatting options. Alternatively, we can just select format from the bottom menu and select the format desired and continue typing on the document.
As we type in Word, spell check suggests words right above the software keyboard. We can type the first few letters then tap on the desired word to select the word for auto-completion.
An excellent example is the word
ill. Word Mobile, and Windows Phone 7 in general, will try to auto-correct it to the word
I’ll, but what do we do when our intention really was the former? As we are typing the word, but before hitting space at the end, tap out of the keyboard. That will close the auto-completion list and allow us to leave the word
ill as it is.
When the phone has no idea what we are trying to type, a familiar red squiggly underline will appear under the word. To correct those words we can double tap to highlight the word. A list of possible corrections will appear above the software keyboard. This list will scroll to the right with a swipe action to see more options.
If the word we typed is spelled correctly and it just isn’t in the dictionary, we can add the word to the dictionary by tapping on the + sign next to the word at the beginning of the list. The phone will store the word in a personal dictionary, and will never tell you again that this word is misspelled.
Word Mobile also allows us to add comments to documents. Comments can be added by pressing the button (on the navigation bar), which is shown in the following screenshot:
Adding a comment works in a similar way to how it does in the desktop version of Word. We can double tap on a word to highlight it and then press the comment button, which opens the following box where we can type our comment:
Although Word Mobile can open the really old legacy Pocket Word format files, it cannot save to this format. If we make any edits to a Pocket Word format file, we must save it as a more modern file format to retain our changes.
Excel Mobile 2010 is a mobile version of Microsoft Excel. It is a spreadsheet program that allows us to create, read, update, and delete data using direct input though the keyboard or using formulas that are familiar to the full version of Excel. The following screenshot shows an example of a spreadsheet:
In addition to the basic input methods, the editing tool allows us to format cells in the following ways:
Mark a cell as containing
Mark a cell as containing
Mark a cell as containing
Font color: red, orange, and green
Cell fill color: red, yellow, and green
The more advanced features of Excel are not found in the mobile version. Such features include hidden sheets, protection settings (locking cells, or protecting the worksheet), zoom settings, and some chart formatting features. However, the feature set found in Excel Mobile should be more than enough to quickly open a spreadsheet to view or update data, or to quickly start a spreadsheet that we can later open on the desktop to enhance and fill.
Previous versions of PowerPoint Mobile only allowed us to view presentations. The 2010 version of PowerPoint Mobile allows us to do some basic editing too. We cannot create new pages, but we do have the following capabilities:
Edit the text of the slide (but not the presentation theme elements)
Once we have finished editing the presentation, we can either overwrite the current file or save it as a new file.
This may seem limiting, but imagine we are on the way to a client presentation and we are reviewing the slide deck in the back of the cab. Embarrassingly, we discover that we’ve misspelled something in the deck. Rather than pull out our laptop, wait for it to boot, change the spelling, and then e-mail the new deck around, we can simply change the spelling right there on the phone, save the file, and then e-mail it to everyone in the meeting.
SharePoint Workspace Mobile is a part of Office Hub that allows for synchronization of files found in a SharePoint library inside of an organization. To access these files, we must have a Wi-Fi connection to our local intranet. This allows our phone to access the internal SharePoint servers.
The hosted version of SharePoint, Microsoft SharePoint Online, cannot be accessed with the phone at this time.
Follow these directions to open a SharePoint library on Windows Phone 7:
2. Tap on open URL.
4. Press the right arrow in the keyboard when finished.
5. Windows Phone 7 will attempt to connect. If the phone cannot connect using anonymous or previously saved credentials, it will ask for credentials for login. If it does, enter a User name, Password, and Domain, and then press the done button.
Once connected to a library, SharePoint will display the documents available with an icon indicating the type of Office document each one is. From here, we can open Word, Excel, PowerPoint, and even OneNote notebooks that are stored on the SharePoint server. Opening a document copies it to the phone. Press the … button on the links menu and select Settings to see how much space is being used by the data store. We can clear out the local data cache by following these directions:
1. Tap on the words data store.
2. Tap on the clear cache button, as shown in the following screenshot:
3. Then verify that we want to clear the cache by tapping on the clear button.
If we open an item from a SharePoint list, the fields of that list item will appear.
To save the URL for access later, click the … icon, and in the menu that appears select bookmark this link.
1. From the Office Hub, swipe to the right until SharePoint is on the screen.
2. Tap on the all button.
3. From the links menu, select the library or list that we want to search through.
4. Then press the search button next to the Windows button on the phone.
When working outside the company firewall, it may be of concern how we access the SharePoint libraries. Many organizations merely provide a SharePoint web portal to access internal confidential information. This leaves their SharePoint servers on the web with just a user name and password to secure it. A more secure mechanism to prevent unauthorized access to SharePoint servers is Microsoft Forefront Unified Access Gateway (UAG). UAG allows us to access internal confidential information using a reverse proxy and VPN solution.
Installing and configuring Microsoft Forefront Unified Access Gateway is beyond the scope of this book. For information on how to accomplish this installation, please visit the following Microsoft TechNet site:
Authentication methods will be briefly described in Chapters 6 and 7, but it is important to have the knowledge. The following is a link to a Microsoft TechNet page on planning authentication methods:
Once our corporation has Microsoft Forefront Unified Access Gateway installed and configured for Office Mobile, connecting to SharePoint sites with Windows Phone 7 is fairly straightforward.
1. From the start screen, swipe right to open the all programs list.
2. Scroll down and open the Settings.
3. Swipe to the right to the applications list.
4. Tap on Office to open the Office settings panel.
5. From the Office settings panel, select SharePoint.
6. On SharePoint settings, tap on UAG Server.
7. In the Forefront UAG server address box, enter the URL of the UAG Server.
8. Enter the User name.
9. Enter the Password.
Today, the only mechanism available for getting applications on Windows Phone 7 is through the Windows Marketplace. The marketplace is where all apps can be found. Developers can create new applications and sell them or give them away on this marketplace. This is good news for Independent Software Vendors (ISVs) looking to capitalize on Windows Phone 7.
Corporate clients must also put their applications through the marketplace. This is good in the sense that we get an extra team of professionals QA’ing our application. However, once it is available on the Marketplace, anyone can download the application. This is a troubling issue for many enterprises. Outside of the Windows Marketplace, the only way to get an application on the phone is through either Visual Studio 2010 or Blend 4. Although, this may make sense for developers and IT professionals when developing applications, it is very unlikely that corporate IT infrastructure would require all enterprise clients to install Visual Studio just to have a corporate application available.
Until an enterprise deployment mechanism is developed by Microsoft, the Windows Marketplace is the only way average end-users will get applications on their Windows Phone 7 devices. However, we can count on Microsoft to deliver such an enterprise deployment mechanism in the near future.
Today, to get an application running on the phone outside of the Windows Marketplace, we must have Windows Phone 7 Developer Tools installed. Included in these tools is an application named Windows Phone Developer Registration. This application asks us to login with our Windows Live ID and password that is associated with a valid App Hub account. This will unlock up to three devices and register them for development. The App Hub can be found at http://create.msdn.com
Also included with Windows Phone 7 Developer Tools is an application named Application Deployment. As the name implies, it is a very simple tool to install any application XAP to either a Windows Phone 7 device or the emulator.
1. Application creation
2. Application submission
3. XAP File validation
4. Adding metadata
5. Certification testing
7. Windows Phone Marketplace
Microsoft uses automated tools to ensure that the application being submitted uses the functionality that we said it did when submitting for approval to the marketplace. For example, if we didn’t state that our application uses location based services and the automated tools discover that we are using GPS location information, then our application will fail the approval process. After the automated process, a human tester installs the application on a phone and tests the functionality on a real device. Anytime a problem is discovered, the developer is presented with a report describing the issues found.
Overall, the requirements are fairly straightforward:
The application must be fully functional.
The application may not sell, link to, or promote mobile voice plans.
The application may not consist of, distribute, or link to alternative marketplaces.
The applications must not jeopardize the security or functionality of the device or marketplace.
Over the air install file may not exceed 20 MB; more than that will require Wi-Fi or direct cable connection to a PC.
An application developer can decide to make a trial version of their application available. When choosing to provide a trial version, the developer should make sure that the full paid application is well represented in the free trial. Some developers in the community have found that their application ratings are lowered by not having enough functionality in the trial version.
All advertising in the application must comply with the Microsoft Advertising Creative Acceptance Policy Guide available at the following URL:
This is a high level listing of the first seven requirements. Read the full guidelines for the full listing of what we can and cannot do in an application within the marketplace.
The full current Application Certification Requirements can be found in a PDF document at the following URL:
This chapter has been a brief overview of Windows Phone 7’s capabilities that are of interest to enterprises. It has focused mostly on the Office applications and a little on the Windows Marketplace. Office Mobile has had a long tradition of being a very capable set of tools for the enterprise knowledge worker and the 2010 version found on Windows Phone 7 is a great leap forward in this family. With great advancements in PowerPoint and OneNote, as well as the strong applications of Excel and Word, everything a business user should need for basic mobile device support is available at the touch of a button.
With Outlook Mobile, contacts, calendar events, and Exchange e-mail summary information is available within a single application and synthesized on a single tile. No more opening applications just to find out that there’s no new e-mail. Windows Phone 7 really does allow busy people to glance and move on with their day. Windows Phone 7 was designed around a consumer experience. Keeping the tenets of that consumer experience in mind, we can build applications to suit business needs. Those needs can be as far reaching as displaying lists and libraries from SharePoint in a browser to building a feed reader app to display the updated contents of a library. We could even build a dashboard containing information that would help us run our business with information about who is out of the office or how our projects are going.
In the next chapter, we will focus on Internet Explorer Mobile for Windows Phone 7. We will look at the changes that it provides from Internet Explorer for the desktop, and how we can code websites to take advantage of this browser. We’ll also look at how to code one site that targets two different environments.