Array

Using a Hardware Device during Development

Must Read

Credit Card Consolidation Vs Debt Settlement Programs – What Debt Relief Option Is Best For You?

Credit card consolidation and debt settlement programs are two of the most popular credit card debt relief options. Both...

Violent and Property Crime Statistics

Just how likely are you to become a victim of crime? It is believed that crime is increasing in...

User Interface Design and Style Guidelines

The Windows Phone 7 Series uses a style named Metro that is designed to combine harmonious, functional, and attractive...

Government Debt Consolidation Loans – Boon Or Bane?

People think the government has every solution to every need. When they are broke, in deep debt, or they...

Tips for Getting Fabulous Cyber Monday Shopping Deals

For as long as I can remember, Black Friday was THE shopping day of the season. Since it kicked...

Day After Thanksgiving Shopping – Navigate the Crowds and Still Get the Best Deals

If you are a brave soul, you probably love the day after Thanksgiving shopping excursions that thousands of Americans...
Admin
test

You can develop and debug applications using a physical Windows Phone 7 device; in fact, this is recommended at least as a final step because the emulator does not provide all the functionality of a hardware device and may not portray your application exactly as it will appear and behave on a real phone.

Connecting a Physical Device

To connect a physical Windows Phone 7 device to your development computer, you must install the Microsoft Zune® software. If it was not provided with your device, you can download the Zune client software from the Zune website (http://go.microsoft.com/fwlink/?linkid=192182). The Zune client allows you to connect your device using a USB cable or through a wireless connection.

Registering and Unlocking the Device

Before you can deploy, test, and debug Windows Phone applications on a physical device (a process known as side loading), you must create a developer account at the Microsoft Windows Phone Marketplace that grants you the right to publish and distribute your applications to the phone. If you have not already created an account on App Hub (http://create.msdn.com/en-us/home/membership), do so now.

After your account is verified, you must run the registration tool to unlock your phone. This uses the Zune software, which must be installed on your development computer, and the Windows Phone Developer Registration tool that is installed with the Windows Phone Developer Tools. After the registration succeeds, you can deploy applications to the phone. You can also unregister the device if required using the same tool.

If you try to register and unlock a device that was previously registered, you must either rename the device using the Zune software, or go to the Windows Phone 7 portal and unregister the device.

For full details of the registration and unlocking process, see “How to: Use the Developer Registration Tool for Windows Phone” on MSDN (http://msdn.microsoft.com/en-us/library/ff769508(VS.92). aspx).

Deploying Applications to the Device

After you connect and register your device, you can deploy an application to it during development by selecting Windows Phone 7 Device in the drop-down list in the Standard toolbar in Visual Studio or Visual Studio Express.

Applications are deployed as a single package with the .xap file extension that contains all the files required to run the application. Visual Studio creates the XAP package and deploys it to the emulator or physical device when you run the application in the development environment.

After you finish developing and testing your application, you can host it in your Windows Marketplace account ready for download to any Windows Phone 7 device. In the future, you will also be able to distribute internal applications for your organization through a private cloud-based service, although the mechanics of this are not currently determined.

Using the Windows Phone Connect Tool

If you are building media applications that interact with the media APIs, you will not be able to debug these while the Zune software is running. For example, if your application uses Media Launchers or Choosers, the XNA Framework for song playback, or the Silverlight MediaElement control to play video or audio content, you must use the Windows Phone Connect Tool to debug your application.

The Windows Phone Connect Tool is part of the October 2010 update to the Windows Phone Tools, which is available from the Microsoft Download Center (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=49B9D0C5-6597-4313-912A-F0CCA9C7D277&displaylang=en).

The Windows Phone Connect Tool (WPConnect.exe) is installed by default in the %ProgramFiles%Microsoft SDKsWindows Phonev7.0ToolsWPConnect folder. To use the tool:

  1. Connect your Windows Phone to your computer and ensure that it is detected by the Zune software.
  2. Close the Zune software after your Windows Phone is connected.
  3. Open a command prompt and navigate to the folder containing WPConnect.exe.
  4. At the command prompt, enter the command WPConnect.exe.

For more information, see “How to: Use the Windows Phone Connect Tool” on MSDN (http://msdn.microsoft.com/en-gb/library/gg180729(v=VS.92).aspx).

Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place...

What are 7 things poor people do that the rich don’t?

1. poor people watch TV in which people read books how many hours you spend in front of the TV and when...

Top 18 best small business ideas for beginners starting

A small business can be frightening and requires plenty of careful planning there are many small business ideas which can be beneficial...

Summer that makes you happy

We saw were already here I've been thinking about some of the things. I used to do with my husband even though...

4 Point to helpful tips specifically for caregivers

What you need to take a vacation. I know it sounds impossible creative and try to make it work for you almost...

More Articles Like This