How to debug windows phone apps on windows tablet - windows-phone-8.1

Ok so I got windows 8.1 nextbook to test on. I created some basic browser app in visual studio running on virtual windows server 2012 r2. My main machine is windows 7. When I connect with USB cable nothing happens (who could have predicted that). I thought I could deploy my app on tablet and do a debug like that but haven't find a way to do it. Anybody here with experience in this scenario, I googled everywhere and the only thing I found is that documentation sucks

You cannot run a Windows Phone app on Windows. You need a Windows Phone or a Windows Phone emulator to run the Windows Phone app. To run on Windows you need to write a Windows Store app. Windows 8.1 on a tablet is the same as Windows 8.1 on a desktop or laptop computer.
In your case you'll probably need a physical Windows Phone since you are already running virtualized. The Windows Phone emulator is a Hyper-V image and is not supported nested in a Hyper-V guest OS.
If you write a Windows Universal app then the code will be mostly the same for the Windows and Windows Phone targets (the UI layer is usually different), so you can write and test the bulk of the app as a Windows Store app to run on your tablet and then recompile for Windows Phone.

Related

Install XAP file locally in windows phone 8.1 device

Hope You are doing well.
Actually i have created one windows phone 8 application. So for testing i have installed the .xap file locally into windows phone 8 and it is working fine. But if i am going to install that .xap package in windows phone 8.1 or later it is not getting installed.
I have made research and found that the windows phone 8.1 and later OS version devices are accepting the APPX Package. They will not allow to install .XAP locally. Now the scenario is like that my client wants to test this application in windows phone 8.1 device.
So, Can anyone help me out that how can we install locally XAP package into windows phone 8.1 device?
Awaiting Response. Thanks in advance.
You can sideload your .xap package on Windows Phone 8.1 device using Windows Phone Application Deployment Tool (for 8.1).
Before installing , you need to ensure the device has been registered for development. You can use Windows Phone Developer Registration (8.1) to enable your device for development.
And you could search for the tool from the Windows 8.1 start menu.

Windows phone - You have installed the maximum number of development app

I have a windows app that's running for a while and recently when I'm trying to deploy the application on windows phone running windows 8.1 OS(using visual studio 2013 and windows phone application deployment) I'm getting the following error:
"You have installed the maximum number of development apps. These apps are installed to your device when you start them in Visual Studio or when you use the App Deployment Tool. Please uninstall one of them and then try again."
I've tried to reset the phone, renaming the app and the phone on windows explorer, unregister & register the phone and also uninstalling all the other applications on it.
The problem is happening on two different devices Nokia Lumia 630 & Nokia Lumia 920.
Is there another way to approach this?
Thanks in advance
This issue has been fix now and we can register our Windows Phone 8.1 for developing:
Could you please try to unregister the Phone from the Dev Center and register Phone again to see if it works?

Deploying Windows Phone 8.1 app to Windows 10 Mobile

I've been developing a Windows Phone 8.1 app using C#/XAML. My configuration is up-to-date Windows 8.1 PC + Visual Studio 2013.
I can test my app on WP 8.1 emulator that comes with VS2013, and also no problem deploying it on physical Windows 8.1 device.
However the app also runs on Windows 10 Mobile because the platform currently allows it that way. Which is good except, my app doesn't work as intended since the device got Windows 10 Mobile Anniversary Update.
I don't know if the problem is in Windows or in my app but that's not important here.
I need to create a hotfix for the issue. And here comes the question. Is there a way to deploy WP 8.1 app to Windows 10 Mobile without submitting it to the store first, without upgrading to Windows 10, and preferably without upgrading to VS2015?
UPDATE The reason I want to deploy WP 8.1 app to Windows 10 Mobile is to test if my patch fixes the issue manifests with Windows 10 Mobile. At the moment I don't understand where is the problem and keep submitting the fix attempts to the store is not ideal.
Thanks.
Is there a way to deploy WP 8.1 app to Windows 10 Mobile without submitting it to the store first, without upgrading to Windows 10, and preferably without upgrading to VS2015?
Yes, it is possible to deploy WP8.1 app to the Windows 10 Mobile without submitting it to store and without upgrading to Windows 10 and without upgrading to VS2015. But you need to make sure you have the Windows 10 Mobile device for you to test.
If the Windows 10 Mobile device is in your side, you can unlock the Windows 10 Mobile device and deploy your app to the Windows 10 Mobile device by using the USB with the same method that you deploy it to the Windows Phone 8.1 Mobile device.
Or you can try to sideload your app on the Windows 10 Mobile device without submitting it to the store by using the Application Deployment tool. For more information, please try to refer to this article:How to deploy Windows Phone 8.1 apps with the Application Deployment tool.

How can I start phone emulator on HyperV or share phone through RDP?

I want to see how far I can take my Surface 2 for developing in Visual Studio 2013. Please note that this is a Surface 2 running WinRT - not full version.
Here is my setup
Surface 2 on desktop mode with RDP.
Windows 2012 running HyperV with a Windows 8.1 VM.
On the Windows 8.1 VM I have installed VS 2013. Naturally, HyperV gets installed as well.
My problems
My first thought was that I could use the Emulator but it complains that it failed to start because some of the Hyper-V components are not running. After some research this seems to be the result of Hyper-V in Hyper-V.
Then I tried to use an alternate approach. To share my Windows Phone through USB. I inserted my "Nokia Lumia 1020" in USB port of Surface 2. I could then see it in my desktop. Also, when I started RDP application I could see "Nokia Lumia 1020" under Local resources->Other supported Plug and Play devices. I checked it for sharing. I connected again but the phone was not visible on the guest operating system.
Anyone else done this? Either know how to circumvent the Hyper-V in Hyper-V or share the phone for development (through RDP).
You can't use hyper-v without windows 8 pro, I'm sorry... Try nokia's device rdp (http://developer.nokia.com/resources/remote-device-access) ...

Windows Phone 8 SDK debug wont start

I have installed Windows Phone 8 SDK, openened the VS express for Windows Phone,
created New Project with simple app, pressed F5, but the emulator wont start.
Is comes up with error:
Exception from HRESULT: 0x89721800
I don't have any network drivers installed which should be called Windows Phone Emulator.
I have Windows 8, with built-in Administrator account and full privs.
P.s. Main reason for this I want to deploy some apps on my Nokia Lumia 800.
I have unlocked it, but when i was deploying app with deployment tool, it came up with the same error message.
P.p.s I've installed Windows Phone SDK 7 and there the emulator worked, but i can't find any way to deploy app to phone
I blogged about this a couple of weeks ago. You can see the full details here: Resolving windows Phone Emulator Problems
XDE cleanup, and Hyper-V is a very common reson for problems with the emulator!
Regarding deployment to phone from windows phone sdk 7, remember to change debug device from "Emulator WVGA 512 MB" (or what ever you use) to "Device", and always start Zune before your start debugging and deployment.
If you had installed Windows 8 (Single Language or Home Edition) with Windows Phone 8 SDK you can't develop mobile applications because it doesn't support Hyper-V.
The only way to work with Windows Phone 8 is to change your OS to Windows Pro or higher.