Window phone 7 SDK to Window phone 8 SDK - windows-phone-7

I made a simple application using window phone 7 SDK and in which I implemented a mail task using EmailComposeTask. When I was testing the application to send a mail it said me to set account and you cannot send mail. I have found a solution that I have to install window phone 8 sdk to check this mail functionality. So question If I install window phone 8 SDK , then My other code will work properly or not? What the other thing I have to care to run my current application.
Thanks,

If a WP app is developed targeting WP 7.1, then it doesn't matter whether you are running it in WP 7 sdk or WP8 sdk. So, you code works the same even if you run in WP8 sdk.
Btw, if you cannot check email task in the WP7 emulator, you can test that in a device. Ofcourse, it needs a developer account to do so.
Also, WP8 Emulator works only in a Windows 8 Pro version. Because it needs the Hyper-V. And your hardware also should support that.
Good luck !!

Related

Developing Windows Phone App on Windows 7 OS

I'm developing a windows phone app. I'm using Windows 7 OS.
Which Visual Studio version should I use and also which Windows App version should I target?
Can it be WP7.1?
And also, I would need to use WebView. Is WebView available in 7.1? Or is there any other alternative of WebView in WP7.1?
I've gone through many articles but still unable to decide.
I highly recommend not to develop against the Windows Phone 7.1 API. It's outdated for more than three years now. You can generally install the Windows Phone 8.0 SDK on a Windows 7 system: How to Install Windows Phone 8 SDK on Windows 7
The results will satisfy you and your users more than a Windows Phone 7 app.
The mobile app market turns really fast. Much faster than the desktop application market. You should consider to do the free update to Windows 10 in order to be able to create Windows Phone 8.1 apps. Windows 10 Mobile is about to come this year. It supports the Universal Windows Platform so developers only need to develop an app onnce and run it on desktop PCs, phones and other Windows 10 devices. If I started a new app now I'd definitely create a UWP app.
Don't waste your time developing apps against an outdated API. Maybe you can still develop Windows Phone 7 apps now. But you'll probably don't get them into the stores in the future. It's just a matter of time when Microsoft stops developers to publish these old apps.

Will Windows Phone 8 app run on Windows Phone 7?

I have some apps developed with Windows Phone SDK 7.1 which undoubtedly run on Windows Phone 8 without any change.
My question is the other way. If I upgrade my app WP7 apps to WP8, meaning I make necessary namespace changes and compile them with WP8 SDK, will they still run on WP7? - I guess no.
What should be my strategy to have apps that run on both of the OS and still I should be able to use advanced functionality (if it runs on WP8) that WP8 offers (like Wallet, NFC, Nokia Imaging and more stuff like that)?
Is that I need to create 2 separate versions of each app? One will run on WP7 built with WP7 SDK and will not have advanced functionality like Wallet, NFC Sharing. The other app will have all of them and built with WP8. Will they be two separate apps in Windows Phone Marketplace?
Windows Phone 7 apps will run on Windows Phone 8, but the reverse is not possible. The former is called backwards compatibility.
If you want to support WP 7 OS, you need to maintain two different applications and submit them independently to the store.

Windows Phone App only for Windows Phone 7?

Is it possible to make a Windows Phone App target only the Windows Phone 7 platform?
I already have the Windows Phone 8 version of the app out, and changed a few things to release for Windows Phone 7 (like resolutions and limitations etc) but when I'm adding it to the marketplace it always has "Supported OS: Windows Phone 7 & 8" and doesn't allow me to change it.
Thanks.
I don't think that is possible, if you upload a 7.5 app it can run on both WP7 og WP8 devices. If you also have an WP8 version of your app, the user with WP8 devices only get the 8 app and not the 7.5 app. Also if the user on WP8 device first download a WP7.5 version of your app, and you later uploads a WP8 version, the WP8 devices will be updated with the WP8 version when ready on the store!

WP8 updates on WP7 apps

Since the release (and in some cases prior to) the release of Windows Phone 8, several WP7 apps on the marketplace have had updates that simply state "Updated for Windows Phone 8."
What does this mean, exactly? Because the marketplace allows multiple XAP uploads, is it a new XAP for WP8 but the app only allows a single description (thus "updated for WP8")? If so, does the marketplace push an update for WP7 even if the WP7 XAP hasn't changed?
Or, are there changes to the 7.1.1 SDK that optimize for WP7 apps on WP8? If so, could you provide a link outlining this? (I did a search, but all I could find is the 7.1.1 update targets 256MB devices.)
Bottom line, although I know WP7 apps are compatible on WP8, is there something I should be doing with my WP7 apps for WP8 while still functional on WP7?
Take a look at this, seems to be an issue that is being worked on at the moment.
http://social.msdn.microsoft.com/Forums/en-US/wpsubmit/thread/789b3017-d242-4151-9d0b-84c85c4b3c24
These tags of "Updated for Windows Phone 8" don't necessarily mean that the app has been upgraded to a Windows Phone 8 application. It could also mean that the developer has tested and fixed bugs that can break functionality for a Windows Phone 7 app in Windows Phone 8. For example, I found two bugs involving local storage in Windows phone 7 projects when running on Windows Phone 8. Therefore, I had to make some adjustments to get my project running 100% on Windows Phone 8 (but its still a WP7.1 project). For more information on bugs and "quirks" when running WP7.1 projects on Windows Phone 8 here is a link to Microsoft's information.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206947(v=vs.105).aspx

SDK/Tools to Develop a New App on Windows Phone Platform for WP 7, WP 7.5 , WP 8 devices

I am new to Windows Phone Development Environment, looked around on SO but couldn't find a clear answer to the question I have.
With Windows Phone SDK 8 publicly available, and new Windows Phones getting good reviews, one of our Clients is looking to launch their app on Windows Phone Platform as well (they already have it on iPhone). The app is pretty simple. Obviously Client would like their app to be compatible and available to as many as possible users/devices - WP7, WP7.5 and WP8.
Question is - what SDK version should I use to develop this app? Currently I have Windows 8 with 64-Bit, VS 2012 Express and Windows Phone SDK 8.0 already installed and ready to go for development. So if develop app using above tools, will it run on all the devices with WP 7,WP 7.5 and WP 8 on them?
What is a good approach to develop a brand new Windows Phone App that would run on WP 7,WP 7.5 and WP 8 Devices.
The complete answer is on this MSDN page:
Windows Phone versions
Basically you can create application targeting the WP7.5 platform and it will run on all current Windows Phone devices, or you can target only Windows Phone 8, then it will run only on new WP8 devices, but when targeting this newer platform, you can use broader set of APIs and features.
When you create new project, you are asked to choose between Windows Phone 7 and 8.
WP7 app runs in old and newer phones, but WP8 app runs only in WP8.

Resources