Getting Started with the beta of the Windows Phone Toolkit for Amazon Web Services

Date: Thursday, January 26, 2012, 1:36:33 PM

Tags:

Table of Contents

If you have been developing mobile applications accessing Amazon Web Services and are interested in having a Windows Phone version of your application, or if you want to add AWS connectivity and integration to your existing Windows Phone application, then this guide is for you.

The guide covers what you need to know to download and install the Windows Phone Toolkit for AWS, and configure your Windows Phone application project to use the toolkit.

You can also download this guide in PDF format from here.

Additionally, videos have been recorded that will drive you through the steps described in the guide and through the samples provided in the Toolkit.


Getting Started with the Windows Phone Toolkit for AWS


Amazon S3 sample walkthrough


Amazon SQS sample walkthrough


Amazon SimpleDB walkthrough

Requirements

In order to install and use the Windows Phone Tookit for AWS, the following are required:

  • Visual Studio 2010 Express for Windows Phone (or higher)
  • Windows Phone SDK

You can download these tools from: http://www.microsoft.com/download/en/details.aspx?id=27570

In order to learn more about Windows Phone development, visit the following site: http://create.msdn.com/

Back to top

Install the Windows Phone Toolkit for AWS

Download the MSI file from this location and run it.

Note that you can access the full source code of this open source project from the Microsoft-Interop section of GitHub.

image

Follow the prompts and once complete files will be installed to the default location (C:\Program Files (x86)\AWS SDK for WP7).

Back to top

Description of installed files

Within the installation directory the Bin subfolder contains the two files you'll need to add to your Windows Phone project. AWSWP7SDK.dll is the AWS library and app.config is the configuration file in which you'll specify your AWS account keys.

clip_image002clip_image003

Back to top

Create a new Windows Phone project

The SDK can be used in conjunction with an existing Windows Phone project but the purposes of this guide we'll be starting from scratch. Start Visual Studio and create a new project. Select a Visual C# Silverlight for Windows Phone template. Give the project a name and click OK.

image

Back to top

Add AWS References to the project

In order to access AWS functionality we must make references within your project to the libraries we've just installed. Within the solution explorer right-click on the project name and select "Add Reference..." then navigate to the Browse tab and select AWSWP7SDK.dll from C:\Program Files (x86)\AWS SDK for WP7\Bin.

image ; clip_image006

Right-click again and select "Add > Existing Item..." then select the app.config file from the same directory.
image

clip_image008

Back to top

Edit App.Config

In order for the application to access AWS it will need references to your account information. Open the added app.config file by double-clicking on it within the solution explorer and replace the text within the Application Settings section with your specific AWS account keys as indicated. Save the file.

image

Back to top

Using the AWS Namespace

One you've completed the above tasks you can then add references to the Amazon namespaces via the "using" keyword.

image

Back to top

Start Writing Code

Now you're ready to start implementing AWS functionality into your existing or new Windows Phone project. Demo webcasts are available which outline each of the samples included with the SDK:


Amazon S3 sample walkthrough


Amazon SQS sample walkthrough


Amazon SimpleDB walkthrough

Back to top

 
blog comments powered by Disqus