Geeks With Blogs

News
Michael Crump Microsoft MVP, INETA Community Champion and XAML Advocate.

I’ve blogged about the tools and have played with the hardware, now its time to put an application on the actual Windows Phone 7 hardware. I will guide you through the entire process step-by-step. Please note that I have an early version of the phone and had to get a Connect Login to download Zune 4.7. If you are reading this after the phone has launched then you can probably just go to the Zune web page and download it directly. You will also want to skip down until the next section that starts the Zune install.

For those using Microsoft Connect, the first thing that you will need to do is get your Microsoft representative to grant you a Connect login  Note: You have to be nominated by someone at Microsoft in order to join the program/get a phone.

You should read over the documentation, but I’m sure you will head straight for the downloads sections.

You will want to download the latest WP7 Technical Preview Zune Software. In my case it was the 9/30/10 release.

After downloading the software (usually around 500mb), extract it and you will find the following file structure:

image

 

Double click on the StartZune.exe and you will notice Zune v4.7 is going to be installed. *Please note that in order for your Windows Phone 7 to be recognized, you will have to use this software*. If you don’t it will say, “USB unrecognized” in the device manager. I foolishly tried to get this to work with Zune v4.2 for about 2 hours.

image

SNAGHTMLd9e106b

image

After you click Launch, it searches for drivers for the Phone. Be patient and if it doesn’t find the device then unplug the usb cord and try again.

 

SNAGHTMLaf121

SNAGHTMLb756d

This is the main screen that you will see after the Zune software is installed and your phone has loaded the proper device drivers.

image

image

image

 

 

 

 

At this point, you are ready to start publishing your custom app to the phone. You will need to click Start->All Programs and look for Windows Phone Developer Registration.

image

Make sure you have the USB plugged into the phone and you are at the home screen.

 

SNAGHTML7a30e1

As you can tell the program requires your Windows Live ID. Use the same one that your developer.windowsphone.com is linked too.

SNAGHTML7b1e2c

Notice that you can Unregister the device. I believe that Microsoft only allows 3 devices per live account. If you have a demo unit, make sure that you unregister it before giving it back.

Open Visual Studio 2010 and load your existing Windows Phone 7 project. Normally the box highlighted in Red below would be set to Windows Phone 7 Emulator. You can now switch it to Windows Phone 7 Device.

image

Before you attempt to deploy your application, you will need to be on the home screen. You can change the time that the phone locks by going to Settings->Lock & Wallpaper. I would recommend setting it to “never”. After you are finished developing switch it back to whatever you want. If your phone is locked Visual Studio you will get the error message below:

image

To deploy your application to the phone, click Build and then Deploy <ApplicationName>. Make sure that you have the Zune software installed and running.

image

 

You will need to slide over to Applications and look for whatever you named your application. Touch it and it should run.

image

I really can’t explain how awesome it feels to see your application running on the Windows Phone 7 hardware. The emulator is great for testing but to see how your app performs you will really need the hardware. The process of deploying your app is very simple and if you love Silverlight then you are already ready to start developing for the phone. That is the entire process, I hope you enjoyed it. I’ve included some links below and you should really register for the free 2 day event by Microsoft.

My other Windows Phone 7 Articles:

From start to finish with the final version of Visual Studio Tools for Windows Phone 7
Hands-on : Windows Phone 7 Review

Free Windows Phone 7 Training (I will be at the one in Atlanta)

2 Day Event – Click here to Register.

Feel free to subscribe to my feed for more articles like this one. You may also want to follow me on Twitter.

Posted on Saturday, October 2, 2010 8:43 AM WP7 | Back to top

Copyright © mbcrump | Powered by: GeeksWithBlogs.net