InsertableContentSource

The development world of a madman

Windows Phone Devs: How To Make Users Love You More

by @ 11:18 on September 8, 2011. Tags: , , ,
Filed under Tips, Windows Phone 7

With the new Mango changes and apparent 500+ API changes, including support for multi-tasking, there is one thing you can do to your app that’s a simple change of just 3 lines of code and it will make your users love you just that little bit more.

In your App.xaml.cs, go to your Application_Activated handler, if you have code already in there for reinstating your state after tombstoning, wrap it all up in this:

if (!e.IsApplicationInstancePreserved)
{
    // Code to reinstate the application's state
}

Do this and your users will experience a quick reload of apps if they switch back to it from the multi-tasking switcher.

SL

The URI to TrackBack this entry is: http://dev.scottisafool.co.uk/2011/09/08/windows-phone-devs-how-to-make-users-love-you-more/trackback/

Leave a Reply

[InsertableContentSource is proudly powered by WordPress.]