Deploy windows phone 7 app in the device - windows-phone-7

I have created an windows phone 7 app. I need to test it in the device. I have got Nokia Lumia 710(OS: Mango7.5) and I need to deploy the app I created in this device and test it. What is the step by step procedure I need to follow.

First You should have a Microsoft Apphub developer account, which you need to developer unlock the device.(Using the "Windows phone developer Registration" tool from your windows phone SDK)
After developer unlocking the device, in visual studio, selecting the debugging target as "windows Phone device" instead of "Emulator" and start debugging(or deploying your app). Also make sure you have the latest version of Zune is installed and running.

If you want to test your apps on your device, the "legal way" (microsoft way) you must:
1) Make sure you have registered as a developer on the AppHub and have paid your subscription.
2) Install the latest version of the Zune software.
2) Plug in your phone via USB and let Windows setup the drivers.
3) Lunch the Zune software and make sure that it picks up your device. The Zune software is the gateway to the device it will always need to be running for any software on your PC to be able to talk to the phone – including Visual Studio when you are debugging.
4) Next you need to unlock your device using the Windows Phone Developer Registration Tool which can be found in the Windows Phone Developer Tools folder of your Start Menu.
got this text form http://cisforcoder.wordpress.com/2010/10/22/unlocking-your-wp7-device-for-app-development/

Unbelievable as it seems...
Unfortunately you need to have a AppHub account (at US$99) if you want to be allowed to upload code to your phone.
The only way round this is I know of is either to have purchased a ChevronWP7 Token (no longer available) and upgrade it to free AppHub account. Or to a have dreamspark account - which also lets you have a free AppHub account.
How do I unlock a device?
Windows Phone devices can be unlocked for development and testing
*using an active account*. Accounts are limited to a certain number of
Device Unlocks and Apps per Device based on the account type.
For Individual and Company accounts:
3 device unblocks
10 apps per device
For Student accounts:
1 device unlock
10 apps per device

Related

Phone did not appear in visual studio

I am new to Windows Phone 8 development. I have registered (unlocked) my phone in Windows Phone Developer registration. And I can see the phone in File Explorer.
But when I launch MSVC 2013 Update 2 and open DirectX 3D shooting game sample, I can only see a plenty of emulators in dropbox and I don't see my phone.
What could be wrong?
I did not register as a Windows phone developer yet because it requires me to pay, but I hope I should be able to launch Microsoft's samples on real device without paying?
Did you google this?
Deploying apps to a device MSDN
You have to meet the following prerequisites before you can deploy an app to a Windows Phone device:
You must be a registered developer. For info about registering as a developer, see Registration info.
It's actually bullet point number one on the documentation.

WP Development Registration fails with Nokia 822

So I recently got a Nokia 822 and a windows development account and was trying to register my device using windows 7 and I continually get the message:
Unable to connect to phone. Please check that the Zune software is
running and that Zune's sync parnership with your phone has been
established.
I installed the Zune software, and reinstalled it as suggested by the microsoft site, I also restarted the phone and my PC several times as well as using the USB cord that came with the device in multiple ports on my PC. I can see the phone from my file explorer, and I am able to connect to it with the WindowsPhone.exe program, however whenever I try to register my phone for development I always get the message above. Anything I am missing here to be able to register my phone for development?
The Nokia 822 is Windows Phone 8, so Zune is no longer used. Instead you need to use the Windows Phone SDK 7.8 (Windows 7) or 8.0 (Windows 8 only) to register it. There are workarounds to get the 8.0 SDK running on Windows 7, but the emulator will not run.
Here are the steps provided by Microsoft:
Turn on your phone and unlock the phone screen.
On your phone, ensure that the date and time are correct.
Connect your phone to your computer by using the USB cable that came with your phone.
On your computer’s Start screen, switch to All apps view.
Under Windows Phone SDK (7.8/8.0), click Windows Phone Developer Registration.
Verify that the Status message displays Identified Windows Phone 8 device. Click the Register button to unlock the phone. If your phone is already registered, the Status message indicates this and you see an Unregister button.
Click Register.
In the Sign In dialog box for your Microsoft account (formerly known as a Windows Live ID), enter the Microsoft account and password that correspond to your Dev Center membership. Click Sign In.
After your phone is successfully registered, the Status message displays Congratulations! You have successfully unlocked your Windows Phone.

how to test windows phone app in an windows phone device

I have developed a windows phone application that makes use of mspn service. Its working fine with windows phone emulator. Now i wish to test it in a windows phone device. I have a windows phone device with me. What are the various steps in testing my app in a windows phone device. What are the main differences between testing my app in windows phone emulator and real device?
The major difference between testing on the emulator and a real device is performance, I have been bitten by this one - it all runs fine on the emulator on a powerful desktop machine, but crawls on the real device.
To test on a real device you have to sign up as a developer at the Microsoft AppHub (http://create.msdn.com) and pay your $99 - you can then unlock your phone, so you can load your app onto the phone using Visual Studio and Zune.
HTH - Rupert.
Additional to the performance gap, testing in a real windows phone device shows you how your app will behave in a real scenario.
I've found that reliability of internet connected apps decreases a lot on the real device, because of many factors. You will see triggered a lot of network-related exceptions, dns, and timeouts that your emulator couldn't see. Its a very healthy practice to test in a real device.
First of all you need your device to be "developer unlocked". You can do it by signing up to the Microsoft App Hub. If it happens that your country it not listed under the App Hub Developer program, it's not the end of the world. You can sign up with a global publisger that will give you access to the app hub under limited priviledges. I name a few ones:
Region / Name / Web Site
APAC App Port http://www.app-exchange.com
CEE APPA Market http://appamarket.com
CHINA MTel http://wp.mtelnet.com
CHINA Device7 http://www.device7.com
MEA Yalla Apps http://www.yallaapps.com
After you develop unlock your device you only need to plug in your device and visual studio will recognize your phone.
So, next to your debug button you will be able to chose between Windows Phone Emulator and Windows Phone Device. Just run and visual studio will deploy your app into your device.
Last but no least, make sure Zune software is open. And you phone screen is unlocked.
You will be surprised on how easy is to make in-device debugging.

How to test a ".xap" file on a Windows Phone 7 device?

Please tell me step by step process for testing a .xap file on a Windows Phone 7 device?
Firstly you must ensure that you meet the following prerequisites:
Your Windows Phone device is developer unlocked using the Microsoft Developer Registration Tool or Chevron WP7 Labs unlocker tool.
You have the Zune client software installed
You have the Windows Phone development toolkit installed
If you have all that sorted, you can then use the Application Deployment Tool to publish your .xap file by:
Connecting your phone to the computer
Open the Application Deployment Tool
Select "Windows Phone Device" from the drop down
Select your .xap file
Click Deploy
There's more information on MSDN
How to: Use the Application Deployment Tool for Windows Phone
There are 2 ways to do this
Using Visual Studio as described here.
Use the Application Deployment Tool as described here.
Note that deploying to a device requires the device to be developer unlocked and registered. For this, you must first get an App Hub account.
1.Need Developer Account First.
2.Zune installation.
3.After Activation of the Account need to register your mobile using windows phone registration tool.
4.Once register your mobile you can able to test the apps in device.

installing app in development on retail phone

Can I use a retail phone to test apps I'm developing for wp7?
Yes, you can use a retail phone to test Windows Phone 7 apps but you'll need to register as a developer on the Windows Phone Marketplace ($99 USD/year) to be able to register your phone as a developer device.
Once your phone is registered as a developer device, follow the instructions here.
I think Microsoft is missing the point, considering that the Windows Phone Market place is being charged and unavailable for developers living in different parts of the world. How do they expect their phones to to pick in such places, if local apps cannot be programmed into it?

Resources