preload
May 29

When starting developing a new mobile app it is always tempting to jump directly to your favourite IDE and start developing, but do yourself a favour and spend a few minutes planing what you are going to develop. This will most likely save you a lot of time later on.

I’m creating a very simple Windows Phone 7 app called PinCodeKeeper and as the name states this application will keep your pin codes.

Sketching

It’s always a good idea to start sketching the wire frames for your application. I like to just make some easy and not very detailed wire frames covering the most important parts of the application. The most important at this phase is to identify the functionality you want the app to contain. These sketches are also very good to use when discussing the app with potential users/customers.

Continue reading »

Tagged with:
May 06

Quite a while ago when I started doing Windows Phone 7 development I was looking for a good book to start with and I bought the Beginning Windows Phone 7 Development book written by Henry Lee and Eugene Chuvyrov. This turned out to be a very good choice, the book covers the most important parts of Windows Phone 7 development, filled with good code examples and is well written.

The book consists of two parts, 19 chapters and 458 pages.

Part 1: The Essentials of Windows Phone 7 Application Development

  • Introducing Windows Phone 7 and the Windows Phone Platform
  • Building Windows Phone 7 Applications
  • Using Cloud Services As Data Stores
  • Catching and Debugging Errors
  • Packaging, Publishing and Managing Applications

Continue reading »

Tagged with:
Apr 19

Occasionally I will write some articles exclusively for DZone, this time I have written a series of 3 articles covering push notification for Windows Phone 7 using SQL Azure and Cloud services.

Part 1/3

Covers how to create the SQL Azure tables that will be used to store notification subscription information and how to create a WCF Cloud service that communicates with the SQL Azure database and pushes toast notification to subscribing phones.

Read the article at DZone: Push Notifications for Windows Phone 7 using SQL Azure and Cloud services – Part 1/3

Continue reading »

Tagged with:
Apr 01

When I develop Windows Phone 7 apps I use a lot of online and offline resources to learn best practices, tips and tricks from other developers. Why use a lot of time figuring out how to do things that already have been done. This post is a collection of all my favorite Windows Phone 7 development resources. The post will be updated as I continuously find new good resources.

Articles

All about WP7 Isolated Storage

Making a Voice Recorder on Windows Phone

Continue reading »

Tagged with:
Mar 31

I am very fond of using patterns when developing and I have seen the importance of patterns in several projects. When it comes to Windows Phone 7 development I guess the most popular pattern to use is the Model-View-ViewModel (MVVM) pattern. I have successfully used a different (but still quite similar) pattern for several mobile app projects. In this post I will show you how to use the Model-View-Presenter (MVP) pattern when developing Windows Phone 7 applications.

I will not go into details describing the MVP-pattern since I covered that pretty well in another post I wrote a while back: Using Model-View-Presenter (MVP) pattern in Compact Framework. What I will do is to show an example on how you can design your Windows Phone 7 app architecture to use MVP-pattern. I will use the same login example as I used in the Compact Framework post. You can see that the biggest difference between how you do this for CF and WP7 is the data binding capability in WP7.

Before we go to the code a short summary on the essence of the MVP-pattern: The View is only responsible for displaying output to the user and receiving input from the user. The View will always ask the Presenter what to do with the data and the Presenter will pass the data on to the View. The Model consists of business objects and can be used both by the Presenter and the View. The figure below explains the MVP-pattern.

Now it’s time to have a look at the code. For this example I have created a solution called MvpDemo. To this solution I have added two projects. One Silverlight for Windows Phone – Windows Phone Application project called MvpDemo and one Silverlight for Windows Phone – Windows Phone Class Library called MvpDemo.MVP.

Continue reading »

Tagged with:
Feb 13

This is the last part in a series of four and will step by step explain how to use WCF services to access SQL Azure Database from Windows Phone 7 app. As an example I will develop a Windows Phone app where the user can create an account and later on log in to the account by user name and password. The accounts are saved in SQL Azure and I am using WCF for communication between the WP7 app and SQL Azure Database.

The book Beginning Windows Phone 7 Development has a very detailed chapter about using SQL Azure Database.

Part 1: Signing up to Windows Azure and create your SQL Azure Database

Part 2: Creating a cloud service (WCF service) to connect to the SQL Azure Database

Continue reading »

Tagged with:
Feb 13

This is part three in a series of four and will step by step explain how to use WCF services to access SQL Azure Database from Windows Phone 7 app. As an example I will develop a Windows Phone app where the user can create an account and later on log in to the account by user name and password. The accounts are saved in SQL Azure and I am using WCF for communication between the WP7 app and SQL Azure Database.

The book Beginning Windows Phone 7 Development has a very detailed chapter about using SQL Azure Database.

Part 1: Signing up to Windows Azure and create your SQL Azure Database

Part 2: Creating a cloud service (WCF service) to connect to the SQL Azure Database

Continue reading »

Tagged with:
Feb 13

This is part two in a series of four and will step by step explain how to use WCF services to access SQL Azure Database from Windows Phone 7 app. As an example I will develop a Windows Phone app where the user can create an account and later on log in to the account by user name and password. The accounts are saved in SQL Azure and I am using WCF for communication between the WP7 app and SQL Azure Database.

The book Beginning Windows Phone 7 Development has a very detailed chapter about using SQL Azure Database.

Part 1: Signing up to Windows Azure and create your SQL Azure Database

Part 2: Creating a cloud service (WCF service) to connect to the SQL Azure Database

Continue reading »

Tagged with:
Feb 13

This is part one in a series of four and will step by step explain how to use WCF services to access SQL Azure Database from Windows Phone 7 app. As an example I will develop a Windows Phone app where the user can create an account and later on log in to the account by user name and password. The accounts are saved in SQL Azure and I am using WCF for communication between the WP7 app and SQL Azure Database.

The book Beginning Windows Phone 7 Development has a very detailed chapter about using SQL Azure Database.

Part 1: Signing up to Windows Azure and create your SQL Azure Database

Continue reading »

Tagged with:
Oct 02

Windows Phone Developer Community announced together with Microsoft Norway the Norwegian WP7 app contest back in June this year. The contest closed for submissions 30th August and the winners was announced at the Windows Phone Developer Community 30th September.

I had the pleasure to be a part of the jury that elected the winners among the contributions and it was not easy to chose 3 applications to win. It was a high level in the contest and a lot of great and creative applications.

The winners are:

Sigurd Snørteland with his Channel9 application. You can read more about Sigurd and the Channel9 application at his blog.

Continue reading »

Tagged with:
Subscribe to my feeds Follow me on Twitter
DZone MVB