Windows Phone Mango – Tombstoning XNA

It struck me that tombstoning when building a XNA application has to be somewhat different then tombstoning a regular Windows Phone Silverlight application. I was thinking of the “Pause screen”, Guide Dialogs (these have to halt the game in some way) etc. Also the events are triggered at different occasions in an XNA application then in a Silverlight application. In Windows Phone Mango you can also mix Silverlight/XNA, are there any special actions needed for application life cycle and tombstoning in these cases?

Let’s go through how tombstoning in XNA applications work and what the differences are compared to a regular Windows Phone Silverlight application.

Continue reading

Lär dig presentera som mästarnas mästare

Gurun Richard Klees till Sverige
Lär dig att övertyga din chef, dina kunder eller andra i din omgivning! Kom och lyssna till en helt magisk presentation med Richard Klees, som har tränat några av de bästa föreläsarna i världen. Detta seminarium är ett måste för dig som skall föreläsa på stora konferenser så som t ex Best of MMS, eller TechDays – men även för dig som vill utvecklas personligt och förbättra dina möjligheter på arbetsmarknaden.

› Stockholm (29 september)

Mer information och anmälan »

Richard Klees own Invitation:

We can feel and demonstrate confidence, professionalism and conviction when we are comfortable, feeling well, know our content inside and out, and the stakes for being successful are not so high that the pressure to do well isn’t so great. If we had a good night’s sleep and the audience is a manageable size made up of people we know and feel calm, we can do a good job.

But what happens when life is not going as well as we planned?

  • We’re nervous
  • We didn’t get a chance to prepare as thoroughly as we would have liked
  • We must be successful because our boss is counting on us to do well
  • We are jet-lagged or fighting a cold, and just don’t feel well-rested
  • We are presenting to a larger audience than we are used to and they are complete strangers
  • We feel pressure to do well and so we are constantly self-evaluating, even as we speak
  • What’s at stake could mean the difference between moving ahead and staying in the same place
  • WHAT DO YOU DO?

We would always like life to play fair, but it doesn’t. That’s where this seminar and “The Action Effect” come in. This seminar will show you how to be confident, compelling and persuasive under any circumstances, with any audience, anywhere, anytime, anyplace. That’s a big promise, but this seminar can deliver and you will see it before your eyes. Hope to see you there.

– Richard Klees

Windows Phone Mango – Tombstoning and life cycle

Before Mango the Windows Phone application could be in four states, Running, Deactivate, Tombstoned and Activate. In Mango there is a new state called Dormant. This extra state is there to provide us with fast app switching. It is important for the developer to understand the Windows Phone application life cycle and to understand what actions the developer needs to take at each state and event to provide an application that is responsive and provides a consistent experience.

The following overview explains the life cycle of Windows Phone applications and all the actions the developer should take and be aware of.

Windows Phone Life Cycle - Image taken from MSDN

Continue reading

Windows Phone Mango – Local Database

With the Mango update for Windows Phone we can now use a local database to store relational data. The local database in Mango is a SQL Compact Edition and you can use object models for CRUD (Create-Read-Update-Delete) operations and you have to use LINQ to SQL to query, filter and sort the data (currently T-SQL queries are not supported).

The local database is stored in the applications isolated storage. This means that the local database is sandboxed from other applications and only your application and background agents have access to the database.

Using the local database in Mango is perfect if you have relational data like Customers and Orders. It will offer you the ability to do quick, efficient and complex queries to the database using LINQ to SQL and it also allows “lazy loading” so that only the data that is necessary at a particular moment is loaded into memory.

Let’s go over the core concepts you need to know to start working with the local database for Windows Phone

Continue reading

Kinect for Windows SDK Beta

Yes! It has finally arrived. Now I really know what to do this weekend!

Can’t wait to see what the community will manage to do now. If you look at all the awesome stuff that has been done so far without the SDK, hopefully now even more cool stuff will come.

Download the SDK here: http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/download.aspx

Kinect Hacks: http://kinecthacks.net/

Happy Kinecting!!

Windows Phone 7 Mango vs iOS5 Features – Really?

I love one of the first commercials for Windows Phone 7 where the message is that Windows Phone 7 is a phone that saves you from the phones. Really? :)

One of the Windows Phone experiences Microsoft is focusing on is the concept of “Glance and go”, you want to quickly get you stuff done so that you can continue with your life. I really love that so much features are already built into the phone when Mango is released. With a Windows Phone Mango device you do not have to install a bunch of applications to really get started compared to iOS. A good example is the new features in the lock screen, you can see what song you are playing, see the album art in the background, change song, the ability to quickly take photos/videos while under lock and new search under lock features.

Below is a comparison chart of general features that are either built in or installed as an app on the phone. We can clearly see that Microsoft is providing a great out of the box phone with Windows Phone Mango. You can do most of your common tasks right away, no need to search the app store/marketplace to find the proper application that solves your need. Some users might not even know how to use the marketplace, and if you do, what version of the application should you install? Often there are several versions of the same application from different developers.

Mango_vs_iOS

List above is from the post written by winphone7.info about this subject,

Today I would say there is an app hysteria. Almost every developer I have spoken to has been thinking about building a mobile application when designing an application for the mobile phones. I think this will change, more and more mobile apps will be mobile web apps, just think of what you can do with for example jQuery Mobile, HTML5 etc.. Also if you think about what is coming with Windows 8, it is a pretty good hint on that you need to polish your javascript knowledge and start learning HTML5!

iOS is going for the “Apps for everything” mantra, I can just respond to that with: Really?

Localization in WP7

I just wrote a blog on how I localized a WPF application in a nice way. You can read that post here: Localization in WPF

What about Windows Phone , how to do localization for Windows Phone? Microsoft has some great articles about localization for Windows Phone. You can read them here: Globalization and Localization for Windows Phone. They give you some good best practices and also one way of doing localization, although I would like to do localization in a similar way as I did for WPF, and lucky me you can do that! :)

Let’s go through step-by-step how I did it.

Continue reading

%d bloggers like this: