-
Notifications
You must be signed in to change notification settings - Fork 72
/
README.html
115 lines (114 loc) · 9.75 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AWS SDK for Android</title>
<link rel="stylesheet" type="text/css" href="http://developer.amazonwebservices.com/connect/css/aws-dev-content.css">
</head>
<body>
<h1>AWS SDK for Android (Beta) Readme</h1>
<p>The AWS SDK for Android provides a library, code samples, and documentation for developers to build connected mobile applications using AWS. This guide walks through the steps for setting up the SDK and running one of the samples. </p>
<h2>About the SDK</h2>
<p>The AWS SDK for Android includes: </p>
<ul>
<li> <strong>Libraries</strong>- Build Android applications on top of APIs that take the complexity out of coding directly against a web service interface. The libraries provide APIs that hide much of the lower-level plumbing, including authentication, request retries, and error handling. Each service has its own library, so you can use only the services you need and keep your application size as small as possible. </li>
<li> <strong>Code Samples</strong>- Practical examples for how to use the library to build applications. </li>
<li> <strong>Documentation</strong>- Complete reference documentation demonstrating how to use the SDK. </li>
</ul>
<h2>Get Set Up</h2>
<p>To get set up, you must sign up for Amazon Web Services, get your AWS credentials, and set up your environment.</p>
<h3>Sign Up for AWS Products</h3>
<p>Before you can begin, you must sign up for each AWS product you want to use. The sample we'll cover in this guide uses both Amazon SimpleDB, Amazon S3, Amazon SNS, and Amazon SQS, so you'll need to sign up for all four products.</p>
<strong>To sign up for a product</strong>
<ol start="1" type="1">
<li>Go to the home page for the product, for example <a href="http://aws.amazon.com/s3/">aws.amazon.com/s3/</a>. <br />
<br />
<strong>Tip:</strong> Go to <a href="http://aws.amazon.com/products">aws.amazon.com/products</a> for a list of links to all our products.<br />
<br />
</li>
<li>Click the sign-up button on the top right corner of the page. </li>
<li>Follow the on-screen instructions. If you don't already have an AWS account, you are prompted to create one as part of the sign-up process.</li>
</ol>
<p>AWS sends you a confirmation email after the sign-up process is complete. You can view your current account activity or manage your account at any time, by going to <a href="http://aws.amazon.com">aws.amazon.com</a> and clicking the <strong>Account</strong> tab.</p>
<h3>Get Your Credentials</h3>
<p>In order to use the AWS SDK for Android, you need your AWS Access Key ID and Secret Access Key.</p>
<strong>To get your AWS Access Key ID and Secret Access Key </strong>
<ol start="1" type="1">
<li>Go to <a href="http://aws.amazon.com/">http://aws.amazon.com/</a>.</li>
<li>Click <strong>Account</strong> and then click <strong>Security Credentials</strong>.<br />
The Security Credentials page displays (you might be prompted to log in).</li>
<li>Scroll down to Access Credentials and make sure the <strong>Access Keys</strong> tab is selected.<br />
The AWS Access Key ID appears in the Access Key column.</li>
<li>To view the Secret Access Key, click <strong>Show</strong>.</li>
</ol>
<blockquote>
<p><strong>Important!</strong> Your Secret Access Key is a secret, which only you and AWS should know. It is important to keep it confidential to protect your account. Store it securely in a safe place. Never include it in your requests to AWS, and never email it to anyone. Do not share it outside your organization, even if an inquiry appears to come from AWS or Amazon.com. No one who legitimately represents Amazon will ever ask you for your Secret Access Key.</p>
</blockquote>
<h3>Get the Android SDK</h3>
<p>Downlod the SDK from <a href="http://aws.amazon.com/sdkforandroid">http://aws.amazon.com/sdkforandroid</a>.</p>
<p>Minimum requirements for using the AWS SDK for Android are:</p>
<ul>
<li>Requires Android 2.1 (API Level 7) or higher. For more information on the Android SDK, see <a href="http://developer.android.com">developer.android.com</a>. </li>
<li>To run the sample in this guide, you also need <a href="http://developer.android.com/sdk/eclipse-adt.html">Android Development Tools</a>.</li>
</ul>
<h3>Package Contents</h3>
<p>After unzipping the AWS SDK for Android package, you'll find the following contents:</p>
<ul>
<li><strong>documentation</strong>- Contains the JavaDocs for all of the relevant portions of the SDK.</li>
<li><strong>lib</strong>- Contains a number of jars to help you better determine how to bundle your Android application. The .jar files can help with debugging your application or helping reduce the size of the production application.</li>
<ul>
<li><strong>aws-android-sdk-VERSION-obfuscated.jar</strong>- Contains all necessary files (including third-party dependencies) for AmazonS3, SimpleDB, SQS and SNS. All class files are obfuscated and compilation was done without the debug option. This is the smallest jar file possible for the SDK.</li>
<li><strong>aws-android-sdk-VERSION-debug.jar</strong>- Contains all necessary files (including third-party dependencies). No obfuscation and all codes was compiled with the debug option on.</li>
<li><strong>aws-android-sdk-VERSION-core.jar</strong>- Contains all third-party dependencies and the base platform used to send and process requests to AWS services. All services are built using this classes. The classes were compiled with debug OFF and were obfuscated.</li>
<li><strong>aws-android-sdk-VERSION-s3.jar</strong>- Contains the classes necessary to use Amazon S3. Must be used with the aws-android-sdk-VERSION-core.jar file. All classes were obfuscated and are compiled without debug.</li>
<li><strong>aws-android-sdk-VERSION-sdb.jar</strong>- Contains the classes necessary to use Amazon SimpleDB. Must be used with the aws-android-sdk-VERSION-core.jar file. All classes were obfuscated and are compiled without debug.</li>
<li><strong>aws-android-sdk-VERSION-sqs.jar</strong>- Contains the classes necessary to use the Amazon SQS. Must be used with the aws-android-sdk-VERSION-core.jar file. All classes were obfuscated and are compiled without debug.</li>
<li><strong>aws-android-sdk-VERSION-sns.jar</strong>- Contains the classes necessary to use the Amazon SNS. Must be used with the aws-android-sdk-VERSION-core.jar file. All classes were obfuscated and are compiled without debug.</li>
</ul>
<li><strong>samples</strong>- Contains code built using the aws-android-sdk-VERSION-obfuscated.jar library.</li>
<li><strong>src</strong>- Contains the original source files for the SDK.</li>
<li><strong>third-party</strong>- Contains the individual jars and licenses for the third-party packages SDK is dependent on.</li>
</ul>
<h2>Run the Sample</h2>
<p>The <code>/samples</code> directory in the SDK contains a browser application that demonstrates how to make requests to AWS using the SDK.</p>
<p>The following steps assume you're using the ADT Plugin for Eclipse and have created a Virtual Device for running the project. For more information, see <a href="http://developer.android.com/sdk/eclipse-adt.html">http://developer.android.com/sdk/eclipse-adt.html</a>. </p>
<h3>To run the browser sample</h3>
<ol>
<li>Open a Sample Android Project:
<ol type="a">
<li>Go to <strong>File</strong> -><strong> New Android Project</strong>. The New Project wizard opens.</li>
<li>Select <strong>Create project from existing source</strong>, then click the <strong>Browse</strong> button to select the sample code. The Browse dialog box opens.</li>
<li>Browse to the <code>sample/AWSAndroidDemo</code> directory, then click <strong>Open</strong>.</li>
<li>Verify that the Build Target is <em>Android 2.1</em>.</li>
<li>Click <strong>Finish</strong>.</li>
</ol>
</li>
<li>Edit the Project properties:
<ol type="a">
<li>Go to <strong>Project</strong> -> <strong>Properties</strong>.</li>
<li>Select the <strong>Libraries</strong> tab.</li>
<li>Click <strong>Add External JARs</strong>. The Browse dialog box opens.</li>
<li>Browse to <br />
<code>samples/AWSAndroidDemo/lib/aws-android-sdk-1.0.12-obfuscated.jar</code>, then click <strong>Select</strong>.</li>
</ol>
</li>
<li>Update your AWS Credentials:
<ol type="a">
<li>Open the <code>AwsCredential.properties</code> file located in <code>src/com/amazon/aws/demo.</code></li>
<li>Edit the file to use your Access Key ID and Secret Access Key.</li>
</ol>
</li>
<li>Run the project:
<ol type="a">
<li>Go to <strong>Project</strong> -> <strong>Clean</strong>.</li>
<li>Go to <strong>Project</strong> -> <strong>Build All</strong>.</li>
<li>Go to <strong>Run</strong> -> <strong>Run</strong>.</li>
</ol>
</li>
</ol>
<h2>Where Do I Go from Here?</h2>
<p>For more information about the AWS SDK for Android, including a complete list of supported AWS products, go to <a href="http://aws.amazon.com/sdkforandroid">aws.amazon.com/sdkforandroid</a>.</p>
<h3>SDK Reference Documentation</h3>
<p>The SDK reference documentation includes the ability to browse and search across all code included with the SDK. It provides thorough documentation, usage examples, and even the ability to browse method source. You can find it at<a href="http://docs.amazonwebservices.com/AWSAndroidSDK/latest/javadoc/"> http://docs.amazonwebservices.com/AWSAndroidSDK/latest/javadoc/</a>.</p>
</body>
</html>