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.
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/
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.
Follow the prompts and once complete files will be installed to the default location (C:\Program Files (x86)\AWS SDK for WP7).
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.
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.
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.
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.
Using the AWS Namespace
One you've completed the above tasks you can then add references to the Amazon namespaces via the "using" keyword.
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: