Is there a way to build metro application that runs in console?
There is no console in the "Metro*" interface. There is still a command prompt on the desktop and that has not changed from Windows 7. This is not going to allow you to run a "Metro*" app, however - it is a command prompt.
I think you may need to do a bit of research into what the "Metro*" UI is, and what it is not.
* This UI is no longer called "Metro", but I have referred to it as such to avoid clouding the issue.
You can use a console if you need that in Windows 8, and your console applications will continue to work. But this is not Metro.
Related
I have 2 windows phone devices on my account that I use for testing. But they get locked for no reason.. I have to unlock it almost everyday. It even happened twice in one day. I haven't figured out what is causing this...
Is anyone experiencing this same issue?
**** UPDATE MESSAGE ****
This is the latest bizzare update on this bug... I've pasted my post in Microsoft Forum below:
I'm experiencing a very strange bug that I don't know if it is on the Windows Phone SDK or in Visual Studio.
I have 2 WP 8.1 devices to test an app that I'm developing. This was the sequence of events that led to this lock down:
Suddenly one phone that I used the most started to ask, almost everyday, to develop unlock the device...
Then the other phone started to do the same.
Now everytime I make a release version and run it targeting Device in Visual Studio, VS 2013 crashes... And the phone gets developer locked again.
Then I found a workaround that was to use the Application Deployment tool from the SDK only to test the release version. (Debug version it deployed without any problems on the device)
Today I forgot the manually deploy the XAP and clicked run in VS. VS crashed... Then I tried to deploy using the SDK tool it said that phone was locked... I unlocked it and clicked on the Deploy button again. Then the error: The maximum number of developer applications on this phone has been reached appeared.
I've uninstalled the app from the Windows Phone device manually and tried again and the same error occured.
I tried the other test device and had to register it again and got the same error.
Now I can't deploy any release version and I don't know how to fix this issue.
Do you know how can I fix all this Visual Studio bugs? I can't seem to find anyone else with the same problem as I'm having.
No, i have three unlocked devices in my account but one wp8.1 and other two win10, if you can upgrade your wp8.1 devices to windows 10 do that using that app because windows has inbuilt feature to developer unlock device, so your device won't get locked again automatically.
if you don't want to upgrade to and need assistance go to this link
this link requires you to login with your outlook account or may require you to login with your windows developer account.
and extra information if don't have windows developer account and want to publish your app go to this link from your windows mobile device or directly search for "Dev Share" App in windows store.
I have an issue that presented itself with an earlier post: cmd.exe will not recognize command
I fixed to problem by unchecking the prefer 32-bit box and if worked.
Now I am trying to run the application and the problem represents itself.
Is there to fix this simply?
I don't know how the problem was "fixed" using that method earlier. The reason why that error message comes up is, by default, telnet is not enabled.
You have to enable telnet on the computer by going to start > control panel > programs and features > turn windows feature on or off > check telnet client. The command should execute successfully after that.
I'm trying to use the Isolated Storage Explorer tool from Windows Phone SDK in order to retrieve data stored in specific Windows Phone Apps' IsolatedStorage and copy it to a folder that resides in my computer.
My computer runs Windows 8 Pro, and i have both the WP7 and WP8 SDKs installed.
The problem is that when i run the command prompt and insert a command line (such as the one below) i get an error that states:
"This app can't run on your PC"
How do i solve this? Thanks
Example:
ISETool.exe ts xd f8ce6878-0aeb-497f-bcf4-65be961d4bba c:\data\myfiles
I'd suggest you try using the Windows Phone Power Tools instead of what you are doing there. It will give you a nice UI to work with instead of trying to get a command line tool to work.
If you really want to use that tool then please post which directory you are running it from otherwise it is hard to tell why it won't work.
Hitting a couple of issues attempting to setup automated testing of our C++ code on Windows Phone 8.
1) I'm hitting the limit of installed applications on our device. Is there any way to automate uninstalling the applications on the device? Via the command line?
2) Is there a recommended method to run unit tests on WinPhone8? Currently, I'm using devenv to load/run the our solution file. This has provided inconsistent results. The Windows Phone debugger doesn't get set in some cases, this causing a 'debugger not set' error when attempting to run.
Here is some good information on unit testing in Windows Phone 8:
http://www.microsofttranslator.com/bv.aspx?from=&to=en&a=http://qmatteoq.com/blog/post/unit-testing-in-windows-phone-8-the-basics
http://wp.qmatteoq.com/unit-testing-in-windows-phone-8-asynchronous-operations-and-mocking/
JustinAngel's answer https://stackoverflow.com/a/13429709/2087252 gives an example how to automate installing, running and deleting of applications on Windows Phone 8.
To make it work you'll need to reference following dlls from your project:
Microsoft.Smartdevice.Connectivity.Interface.dll
Microsoft.Smartdevice.Connectivity.dll
Microsoft.Smartdevice.MultiTargeting.Connectivity.dll
If you want to run your application/test on emulator, you can start it with following command line:
"C:\Program Files (x86)\Microsoft XDE\8.0\xde.exe" /name "Emulator WVGA 512MB.username"
where username is your windows username.
Overview:
I need to detect if a given application is running in WinRT (aka "Metro") mode, by process/PID. Is there a good way of doing this?
Failed attempts and observations:
OpenProcess() and call Call GetPackageId() checking for != APPMODEL_ERROR_NO_PACKAGE: This seems to work for some processes while others such as Chrome when running in Metro mode fail the check.
Metro apps appear always be hosted (e.g. their parent) by svchost.exe
Any ideas? Please omit any "Don't do that" or "Why?" responses as they are not helpful to this particular question.
IsImmersiveProcess would return true if the process is running in Metro Mode. Note, that if the detecting app is running as a service then this call always returns false.
If the Metro app is running WWA Applet then get the command line arguement from the PID and see if it WWAHOST.exe. Not all metro apps are running as WWA applet for example, IE runs as a standalone exe in Metro mode.
This may sounds as a kludge but worked for me in detecting whether IE is in metro mode.
The IE process in metro mode is still iexplore.exe. It's root parent process in Metro mode is Wininit.exe where in non metro mode is explorer.exe.
So find the root parent PID for the IE's PID and then from the parent's PID get parent's process name then compare it against "Wininit.exe" or "Explorer.exe"