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

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.

Related

Does creating developer account on Windows Dev Centre during Targeted App Distribution provides with Enterprise Sideload key?

We have implemented a Windows 8 app. We tested the app by sideloading on both Windows 8.1 Pro and Enterprise. The app is working as expected when both the machines are connected to the domain. If both the machines are out of the domain, the app does not work and we receive the following error ‘This app can’t open. There’s a problem with app. Contact your system administrator about repairing or reinstalling it’. Also, in the event log the following error was displayed ‘Activation of the app 589f3680-7094-4066-92ee-75cd86b75bc1_5gyrq6psz227t!App for the Windows. Launch contract was blocked with error 0x80073CFC because its package is in state: Modified‘. We checked through on your sites and it is mentioned that Enterprise Sideloading key is mandatory for the app to work if the machine is not connected to the domain.
If we publish the app on Windows Store using ‘Targeted App Distribution’ method, do we still need to worry about the Enterprise Sideloading key or will the key be available when we will create a developer account on the Windows Center? Let us know.
Let us know if we are missing anything. Also, it will be helpful if you suggest any appropriate way as we need the Windows app to work without being connected to the domain.
Thanks
You could sideload the app if you have a developer license registered on the target machine. You can get a developer license via Visual Studio or with this powershell command:
Get-WindowsDeveloperLicense
However the developer license needs to be renewed every month.
See my answer here how to sideload an app:
sideload windows 8 apps to multiple devices?

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.

Testing .xap on windows phone 8, without registration

I have got a .xap file, i mailed it and opened it in my windows phone 8.
It gives me company app error.
Also i tried it with deployment in visual studio, it runs fine with emulator but problem with device(zune software not installed) whereas i have installed it and it is not detecting the device.
My question is that can we test an application without any company registration on windows phone device, just for testing purpose.
I have got an microsoft account.
You can deploy the XAP, but you must unlock the device first.
Fortunately, it's now a free process, you don't need a devcenter account anymore. The only limitation is that you can deploy only two applications at a time (when deploying a third application, you must remove a previous one).
The procedure is described here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769508(v=vs.105).aspx
I think Beta testing will help u.We can upload a build as beta version to the market for testing purposes.Have a look on the below link.
Beta Version in WindowsPhone
I think that the live test of phonegap (as you said you use it) will be great for you. Please see http://app.phonegap.com/ for more information.
You can check unsigned apps up to two apps on a free account.
If you have Visual studio installed, search for "Application deployment" from start or Run XapDeploy.exe. Test unsigned .XAP

Deploy windows phone 7 app in the device

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

Installing "Aplication Deployment" without the SDK (Windows Phone)

I'm working with some client on making an app. I managed to get him an unlocked device, so I can just send him the xap file, and he can directly test it.
But I don't want him to install the whole SDK, I only need him to get the "Application Deployment" tool, so he can deploy the thing to the phone.
Is there a way to get the "Application Deployment" program, without installing the whole SDK?
I am not sure if you can get the "Application Deployment" program without the SDK, however there are a couple of alternatives ...
Chevron WP7 is an 'official' (i.e. Microsoft controlled) mechanism for unlocking a phone and allowing application to be side-loaded. I thin it costs $9.00 and allows you to upload XAP files to your phone
Windows Phone Marketplace beta, you can upload a XAP to the marketplace as a beta. This XAP will not go through the usual test processes, and will be 'live' within a few hours. This is the official way of sharing beta code.
I think Windows Phone Powertools might be what you're looking for. It doesn't seem to have any references to any of the SDK dll's.
Actually Windows phone will not allow the application deployment without developer unlocking the phone with the developer unlocking tool. (some people do this by hacking through registry).
After that you can use the Windows Phone Powertools to deploy the applciation when connected to Zune.
Other than this is , you have to do this by marketplace only and update the applciation.
You can do this - just use SDK tools:
First of all, send him XAP Deploy, you've got it in:
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\XAP Deployment\XapDeploy.exe
You must unolck his phone, you can do this by your Live ID and this tool:
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\Phone Registration\PhoneReg.exe
Finally, he must install Zune software for conect device to PC:
http://www.zune.net/
After install Zune and connect his device, just let him use XapDeploy.exe
Have fun :)

Resources