Updating my Windows Phone App to Windows Phone 8 - Scott Hanselman

 

scott hanselman windows phone 8

Windows Phone 8 1 Has My Attention Now Hanselman, How To Install Apps And From Sd Card In Windows Phone 8 1, Como Instalar Aplicativos Fora Da Loja No Windows Phone 8 1 E 10, How To Uninstall Oem Apps From Devices Running Windows Phone 8 1, Hotspot Shield Free Vpn App Available For Windows Phone 8, How To Update Your Windows Phone 8 To Windows Phone 8 1 . Apr 18,  · Man, Windows Phone is definitely more than "point 1 better." Seriously. It's the platform Windows Phone should have been from the beginning. From a general functionality perspective, this update brings the Windows Phone (finally) on par with my iPhone 5s, and in some cases, takes it beyond. It's REALLY tempting now. Scott Hanselman on Programming, The Web, Open Source,.NET, The Cloud and More Folks who have Windows Phone 8 will get their updates from your WP8-XAP and Windows Phone 7.x folks will get theirs from your WP7-built XAP. This whole thing took about 3 hours and most of that time was spent doing screenshots.


Windows Phone has my attention now - Scott Hanselman


It creates lock screens for you with your name and contact number on them to aid in finding your phone the old fashioned way when you lose it. No need for a GPS, just tell folks you have a small reward and give them a number to call.

You can download it free now as folks will not pay 99 cents for anything except Angry Birds. But I'm not bitter, scott hanselman windows phone 8. Recently I got a Nokia Lumia with Windows Phone 8 scott hanselman windows phone 8 since there's a number of new APIs and features I could exploit - not the least of which being the ability to programmatically set the phone's Lock Screen without the user needing to scott hanselman windows phone 8 anything - I figured it was time to update it.

I encourage you to review the post From Concept to Code in 6 hours: Shipping my first Windows Phone App as a reminder of what the app did and the issues I had writing the Windows Phone 7. Here's what I had to think about updating the app for Windows Phone 8. Big thanks to my friend Justin Angel at Nokia for brainstorming on Skype with me and helping with the async code and resolution issues.

It runs and behaves exactly on Windows Phone 8 as it did on Windows Phone 7. I wanted to update it in order to "light up" some the new features on the new OS.

Upgrading was easy, I opened the old project and was prompted to upgrade. I double-clicked on the WMAppManifest. I went back and forth on this. However, scott hanselman windows phone 8, enough stuff has changed that I decided to make a branch in source control rather than make a single build.

Honestly, there's likely no wrong answer here and you use what you're comfortable with. I could have to CSProj files if I liked, or just made a different Build Configuration like Debug8 and Debug7, etc but I understand my source control pretty well so I ended up with a phone70 and a phone80 branch and I switch between them.

It's more likely that I'll be updating the phone80 branch then "back porting" new feature so for now this work fine, but know I can always make a single build if I want. Ultimately though, I know that I need to make a build for Windows Phone 7. If you've got Windows Phone 8 with a new resolution you'll get the right version as you can see in the screenshot below, scott hanselman windows phone 8. I've submitted two XAP files. I updated my app a few weeks ago but my first good bug came in from a gent with a HTC Windows Phone device running at x, rather than x He said my lockscreens were cropped!

With Windows Phone 8 there's three resolutions, in fact as Justin points out :. It's less important that there's three resolutions but rather more interesting that p is a different aspect ratio! Turns out I was making a number of assumptions in my code, not the least of which being the screen resolution. I was assuming as the aspect ratio like x and x, but is x! Turns out that it's easier than that.

On all of my app's pages but one I was scott hanselman windows phone 8 to remove XAML code and hard coded margins and row definitions, scott hanselman windows phone 8. I was actually being too specific and not letting the system lay itself out optimally. The first RowDefinition fills to the size of its content and the second just takes up the rest.

However, with these new resolutions, I did change my originally single SplashScreenImage, scott hanselman windows phone 8. You'll find that at least half your time doing mobile apps regardless of Apple, scott hanselman windows phone 8, Windows or Android is getting the PNGs and artwork files correct.

I had chose to hard code some screen sizes in one place in the app, scott hanselman windows phone 8. ActualHeight and Application. ActualWidth to be correct. I am told that only the most edgy of edge cases need to do this and often this is in the creation of pixel-perfect lock screens so you probably won't sweat it at all. Finally my app can update the Lock Screen without manual user intervention. This was my 1 request and everyone assumed it was my fault that the feature didn't exist.

It's been added in Windows Phone 8. If you app wants to change the Lock Screen it has to ask once and get permission. It has to be the "current lock screen provider. Before I'd just save the wallpaper and you'd wait and you had no choice. Sure, but my second lovely bug that showed up was when folks mashed on the Save button many times. Because everything is non-blocking this would fire off many save requests and eventually they'd collide at the file system with an "Access Denied" or something equally useful.

I have this shared resource that I need to protect access to but I don't want to block the UI. Michael L Perry has a scott hanselman windows phone 8 solution for this that should probably scott hanselman windows phone 8 built into the Windows Phone SDK unless it is and we've all missed it? When you're done, make sure you run the Windows Phone Application Analysis tools see how scott hanselman windows phone 8 application does.

Does it use too much memory? Use up the battery? Does it startup in less than a second? I fixed some bugs in the Windows Phone 7 version, changed that XAP's version number and submitted it as a small upgrade.

Folks who have Windows Phone 7. This version, as you'll recall, doesn't auto-update the lock screen because it can't. There's the Marketplace before my update, showing the 7. I click Update selected and upload the new Windows Phone 7. I am keeping the Windows Phone 8 one a few versions ahead for my own sanity. It makes sense to me and it helps me remember what's "newest" even though it only matters that the new versions be higher than the previous versions.

Here's the thing: Mobile app development is all about the Screenshots and Icons. There's so many resolutions and assets and different scenarios where your application can be showcased that it's worth spending some time getting really good at PhotoShop or Paint. I'm doing all my work in Paint. NET, in fact. Because there's three resolutions you'll want to make note that you need three sets of screenshots!

It may not be obvious from this picture of the marketplace submission but you need to click WXGA and p and upload separate screenshots for each one!

Otherwise your potential users won't see your app looking exactly as it will on their device. Tedious, but crucial. Truly, this became an asset management chore. You will end up with at least 24 screenshots 3x8 plus three splash screens, several icon sizes and you'll also want to test on both the Dark and Light themes. In the end, it will be seamless for your end users. This whole thing took about 3 hours and most of that time was spent doing screenshots.

Scott Hanselman is a former professor, former Chief Architect in finance, scott hanselman windows phone 8 speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author. Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. NET Asynchr About Scott Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee.

Sponsored By. Hosting By. Also, if you have your app localized, multiply 24 screenshots to the number of localizations. Scott Hanselman. The SemaphoreSlim class was updated on. NET 4. You would have to build your own IDisposable Release, though. In the situation you describe, I usually just disable the button at the beginning of the async handler and re-enable it at the end; but async synchronization would work too. If you need other async-ready primitives, Stephen Toub has a blog series on the subject and I've implemented them in my AsyncEx library which supports both Windows Phone 8 and Windows Phone 7.

Stephen Cleary. Is it because of all of the various PNGs that are embedded or something? Even the average usage of 22MB seems excessive. Unfortunately, it was a buggy port that crashed after a while. Mike C. Speaking of lock screens are you aware of a bug on the WP8, scott hanselman windows phone 8, where the phone autolocks during an active phone call but scott hanselman windows phone 8 cannot 'unlock' the phone till the current active phone has ended.

So you cannot multi task like you can on the the iPhone or the Android phones? Thanks, I didn't know about your app. Installed it on my Windows 7 phone Andre du Plessis. I realize the point of this article is to show an example of porting an app from the old Windows Phone to Windows 8 Phone, but I just wanted to point out to people that didn't know that Windows 8 actually comes in with this functionality built in - I bet they stole Scott's idea!

Brad Rembielak. Stephen Cleary - The SemaphoreSlim and async locking classes built around them are very helpful, but users have to be careful not to cause deadlocks. You mention it in a comment in your source code, but classes like AsyncLock are not re-entrant recursive so if you enter an async locked section and then some of that code goes on to try to enter that section again, you will deadlock.

It seems obvious, but since you could execute any arbitrary code not just in that same method while the Semaphore is held, you might not realize you have re-entrant code. Eric Lippert's answer on StackOverflow states why something like this is not included in the framework for just that reason.

 

 

scott hanselman windows phone 8

 

Jun 21,  · A list of focused and to-the-point videos that get you using Windows quickly and effectively. Skip navigation Sign in. Search. Scott Hanselman; Videos; Introduction to Windows Phone 8. Windows Phone 8 1 Has My Attention Now Hanselman, How To Install Apps And From Sd Card In Windows Phone 8 1, Como Instalar Aplicativos Fora Da Loja No Windows Phone 8 1 E 10, How To Uninstall Oem Apps From Devices Running Windows Phone 8 1, Hotspot Shield Free Vpn App Available For Windows Phone 8, How To Update Your Windows Phone 8 To Windows Phone 8 1 . Nov 14,  · Since my first forays into Xamarin I have been making great use of this awesome trick by Scott Hanselman to quickly change from a configuration with Hyper-V (for Windows Phone and Windows 10 Mobile development) and Virtual Box (for using emulators based upon VirtualBox.I created this dual-boot option in Windows , and it survived the upgrade to Windows 10 RTM in July.