21 December 2010

My First Published Windows Phone 7 Apps

Like many other developers out there (there’s over 18,000 registered developers so far) I decided to take a try at writing some applications for Microsoft’s new Windows Phone 7.  I decided to create two simple applications (to start with) – one for free and the other to (try to) sell for $0.99 (USD).  The details for each application is included below.  But first, a few lessons learned.

Lessons Learned

“Twas the Night Before Christmas”

For my first free published application, I decided to take the near-200 year old poem “A Visit from St. Nicholas”, also known as “Twas the Night Before Christmas” and make it available for reading as an off-line Windows Phone 7 application.  With Christmas Eve fast approaching, it seemed like a simple choice :-)

This application allowed me to make use of the Windows Phone Browser Control as well as the Pivot Control.  Probably the biggest challenge with this application was getting the Browser Control to properly read the embedded HTML and image files.  As it turns out, you have to copy the files to Isolated Storage (this only needs to be performed once) before the browser control can directly access them.

Once you install and run the application, you have the option of reading the Introduction, the actual Story, and the Credits (i.e. copyright notice).  Here are a few screen shots:

Twas_Introduction_lightTwas_Story_lightTwas_Credits_light

Read the full application details and/or download the application here.

SafetyTip

For my first “non-free” application, I decided to port an application I had originally written for Windows Mobile 6.0 – SafetyTip.  Although the user interface code did not directly port (not even close :-), the underlying business logic ported just fine – since it was c# code.

This application is not just another tip calculator but rather calculates what I like to call “visually verifiable” tips.  In other words, it will generate a tip that, when added to the original amount, will total up to an amount that can be visually verified by looking at it.  For example, one of the methods available for selection is “Palindrome”.  This method ensures the "cents" digits are the reverse of the first two "dollar" digits.  For example, in the screen shots below, you can see that the tip calculated for $100 using this method (at 15%) is 15.51.  Add this to the total for $115.51.  Note how the "cents" digits, ".51" is the reverse of the first two "dollars" digits, "15".  If you get your credit/debit card statement and these sets of digits are not reversed, then you know you should probably check into what's going on.

This application provided me the opportunity to work with the Silverlight for Windows Phone Toolkit.  I utilized the ListPicker control from the toolkit to list the various tip calculation methods (there are a total of four).  Working with this toolkit is simple and there are various examples to learn from.

Here are a few screen shots of the application:

ST_Palindrome_lightST_Checksum_lightST_RoundUp_lightST_Standard_light

Read the full application details and/or download the application here.

What’s Next?

Like many other software alchemists out there, I have a running list of ideas that I hope to convert to Windows Phone applications in the relatively near future.  Given the simplicity of the Windows Phone 7 platform, I just might stand a chance!