How to launch Windows Phone 8 Emulator programmatically from a desktop app?
You may use the Microsoft.SmartDevice.Connectivity API to launch the Windows Phone 8 Emulator from your program code.
For further information, please see the Microsoft MSDN article: Controlling Devices with the Smart Device Connectivity API
You can find your Emulator launcher in C:\Program Files (x86)\Microsoft XDE\8.0 but the real problem isnt finding the program or even launching it pragmatically. The problem is that I think it needs a XAP file or it will not launch. If you can find a way to launch it however I think the easiest way would be from a .bat file
Open notepad
-type in cd
Go to next line
-type executable name
Save as "fileName.bat"
MAKE SURE TO INCLUDE THE QUOTATIONS WHEN YOU SAVE or it will save it as a text file and not a batch
Double click it
Another way of launching the Emulator is From the Start Panel --> Hyper-V Virtual Machine a box will pop up with the list of Virtual Machines on your computer choose the Windows Phone Virtual Machine you have on your computer and click on OK your Windows Phone emulator will launch.
Related
I want to create XAP/APPX File which run on windows phone and I have a developer account. My current application developed in 8.0 but
Windows phone 8.0 does not have option for
(i) Store - > Create app package (Which is available in 8.1)
With the ‘Re-targeted to windows 8.1 ‘ option it crate ‘windows phone silverlight 8.1’
After clicking store option it show error for "In Order to run windows app certification kit, your project build configuration must be release and the platform must be ARM or Neutral" , as per error we change in project but still it show same error
what i want to do is, I want to create xap/Appx file which will run on locked device as well. By clicking on Store -> install from local/ sd card.
Please suggest me proper way to build an xap/appx file, any signing certificate is needed then please let me know.
When the emulator is closed and reopened in Visual Studio,
does it do a full reset?
I am new to programming for Windows Phone and trying to make a simple program
to save a text file.
Will a saved file be deleted everytime I do a new startup of the emulator?
As MSDN says:
Data in isolated storage persists while the emulator is running, but is lost once the emulator closes. For more info about isolated storage, see Quickstart: Working with files and folders in Windows Phone 8.
After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app.
The error messages I see is:
"Not enough memory in the system to start the virtual machine emulator
WVGA 512MB.user with ram size 512 megabytes"
Well, the instant I attempt to run a build, it the machine immediately goes from 25% memory consumed to 80% consumed. Even after I close Visual Studio Express 2012, still it is stuck at 80% memory consumption according to the task manager. At this point, I am unable to run the Windows Phone emulator to test my app.
How can I work around this issue without replacing my hardware?
Thanks!
Microsoft has now posted a KB article with information about how to edit the registry to correct this:
Start Registry Editor.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Virtualization
Right-click the Virtualization
folder, point to New, and then click DWORD Value.
Type MemoryReserve, and then press Enter.
Double-click MemoryReserve,
enter 2048 in the Value data box, select the Decimal option, and
then click OK.
Close Registry Editor.
I can't post comments yet but I wanted to confirm being able to start the emulator after starting the Hyper-V Manager. I was getting memory errors trying to launch the emulator; I started the emulator via the Hyper-V Manager and was able to launch it from VS2013.
Closing down some applications (eg SQL Server) did the trick for me.
I would like to move my WP8 development to a virtual machine. I know that the emulator won't run on top of a VM, so I'm wondering if I can deploy & debug directly to the device (via regular old USB). RemoteFX allegedly performs "USB redirection" which I assume is supposed to magically connect the phone up to my RDP session, and thus enable deployment. I was able to establish a RemoteFX connection with my VM, however when I try to deploy to my phone Visual Studio (within the VM) claims it cannot find a phone. (yes, I verified my phone is connected to my local machine)
tl;dr Does anyone know how to deploy to a physical Windows Phone from within a VM?
I see that this is the first link that appears in google search for this problem. I am going to present you the solution from what it is there is Nokia development articles. Please go through link.
The only important thing is to enable Intel VT-x option.
Please tell me how I can testing a .xap file on a Windows Phone 8 device? Can I install XAP file on WP 8 without SDK8?
By testing on WP8, I think you mean deploying your app to a physical device. For this you need two things:
dev-unlock your phone. You can do this if you have signed up for an MSDN dev account, or know someone who has
Deploy your application to your device by plugging your phone in to your PC, PIN-unlocking it, and setting the target to Device in