Window app development - windows-phone-8

I am totally new in Windows app development, and wondering whether the application developed for, let's say, Windows mobile 8.0 will work on Windows mobile 7.8 and Windows RT, Windows 8, Windows 8.1, OR there is need to adapt the application?
I would really appreciate any tutorial to have an understanding what to do not to fail.
Thanks.

To summarize the answer
Windows Phone 7.x apps can run on Windows Phone 7.x & 8.0 (reverse not possible)
Windows Phone apps can't run on Windows 8
Current desktop apps can run on Windows 8 (not Windows 8 RT)
Current Windows 8 (or Store) apps can run on any Windows 8 device
If you want to build an app which should run on all devices i.e. Windows Phone 7.x and above, Windows desktop, Windows 8 etc... You can separate the user interface part and business logic. There is something called as Portable Class Libraries. You can use them to share the code between apps.
For more information:
http://mayurtendulkar.com/2013/09/cross-platform-hybrid-or-native/
http://msdn.microsoft.com/en-us/library/vstudio/gg597391(v=vs.100).aspx
Hope it helps.

Related

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 to debug windows phone apps on windows tablet

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.

Need to convert my Windows Phone 8.1 app code to Windows phone 8

I have developed an app for Windows Phone 8.1 but now I want the same app to developed in Windows phone 8.0. It is possible to do that? Is there any migration tool available or I need to develop from scratch.
No you can't downgrade any app after you've started developing. IF you wanted to develop a WP8 as you said have to start it from the scratch. But still you can upgrade a WP8 app to WP 8.1 (For Silverlight Apps). If it's normal WinRT app you can only develop targeting 8.1 only.
For more have a look here
Hope it helps!
You just compile the 8.0 release and upload the *:xap to the store without deleting your 8.1 *.appxupload.
Uppdate App >> Upload and describe your package(s) >> Add new
You might wanna consider making a phone 7 app for best coverage (7 will work for 8.0 users).

Difference between Windows 8, Windows 8 RT, Windows Phone 8

We have an app written for iOS and Android. How we are thinking over supporting it for some Windows platforms. I can see there are three modern mobile Windows platforms at now:
Windows 8
Windows RT
Windows Phone 8
As I understand, Windows 8 and Windows RT differs only in that former is for Intel and latter is for ARM. But what about Windows Phone 8? If we port our app to Windows 8 (and Windows RT), would it run on Windows Phone 8? Or vice-versa? What is relation between these platforms? What percentage of smartphones/tablets does run any of these platforms?
The Windows platforms:
You are right, Windows 8 Apps and Windows 8 RT Apps are (in the most common cases) the same so you usually don't have to worry that your Windows 8 App does not run on a Windows 8 RT device.
The Windows Phone platform is slightly different. You can reuse very much of your code from the Windows 8 App but most controls lay in different libraries and some behaviours change between these platforms. By now!
Some days ago at //build conference Microsoft introduced Windows Phone 8.1 and much has become easier!
Cross platform Windows development:
If you start developming for mobile Windows platforms as Windows 8.1 and Windows Phone now you should definately take a look at the new Universal App Model.
Since the upcoming Windows Phone 8.1 Update, both platforms share the same code base. With the Universal App Model you can share your code between both platforms and only have to define different layouts for the GUI. You can compile your project both for Windows Phone 8.1 and Windows 8.1 then, which is really cool!
Both the Windows 8.1 Update and Windows Phone 8.1 Update are available for every Windows Phone 8 respectively Windows 8 device. So you don't have to worry to exclude useres when "only" developing for the latest version of both platforms.
Percentage of smartphones/tablets users on these platforms:
If you use the Universal App Model there is no question whether to develop for Windows 8 OR Windows Phone 8. You automatically develop for both. Users will love you for that!
For more information read this blog post.
Hope that helps :)
Windows 8 and Windows 8 RT both support Windows Store Apps without any additional work. You write it once, publish it to Windows Store, and it's downloadable on both OS's.
It used to be that you needed to develop a separate app for Windows Phone 8 because it has a separate app store and essentially a separate OS (although parts of it are shared with W8). You could share some of the core logic code but the UI parts needed to be different since WP8 has different resolutions and different controls. And you'd compile different packages depending on your target OS.
But it's a very recent development that supposedly you're able to now develop once and target all 3 of these OS's, although I have not tried this yet. You can find more details here:
http://readwrite.com/2014/04/03/microsoft-universal-windows-app-store-developers-unified-code-base#awesm=~oCPndkNofb18zX

How upload XAP file with Windows Phone Power Tools on tablet?

I would need to upload a XAP file done for Windows 8 Phone to a Windows 8.1 Tablet.
I know that Windows Phone Power Tools do it but since this tool was done for Windows 8 Phone and not for Tablet, for it. Could I upload this XAP into my Tablet with it? Is it possible?
Thanks in advance
Best Regards
Alejandro
Windows Phone 8 apps are not compatible or in other words do not work in Windows 8. Though you can share some code using PCL (Portable Class Libraries), the development environment and architecture is different for both.
So the answer for your question is, it is not possible to deploy or run your Windows Phone apps on a Windows 8 tablet.