summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2012-12-03 16:08:29 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-03 16:08:29 -0800
commitdac257cd73cce3e63dd21267520660dd6869baf4 (patch)
treec66213041a591e3d70e2b82093acbe928b507137 /docs
parent2d332c1e891431207d4e0b2d08a00db5297a5f89 (diff)
parent9857e24612d97f2e4e9145294375ce88029a52b3 (diff)
downloadframeworks_base-dac257cd73cce3e63dd21267520660dd6869baf4.zip
frameworks_base-dac257cd73cce3e63dd21267520660dd6869baf4.tar.gz
frameworks_base-dac257cd73cce3e63dd21267520660dd6869baf4.tar.bz2
am 9857e246: am cd6ffc82: am a06c2941: docs: revisions to GPS Setup page w/ note about emulator
* commit '9857e24612d97f2e4e9145294375ce88029a52b3': docs: revisions to GPS Setup page w/ note about emulator
Diffstat (limited to 'docs')
-rw-r--r--docs/html/google/index.jd2
-rw-r--r--docs/html/google/play-services/setup.jd73
2 files changed, 48 insertions, 27 deletions
diff --git a/docs/html/google/index.jd b/docs/html/google/index.jd
index 49eac1c..1c83e78 100644
--- a/docs/html/google/index.jd
+++ b/docs/html/google/index.jd
@@ -30,7 +30,7 @@ track app usage, and enhance your app with features such as maps, sign-in, and
cloud messaging.</p>
<p>Although these Google services are not included in the Android platform, they are
supported by most Android-powered devices. When using these services, you can
- distribute your app to all device with Google Play running Android 2.2
+ distribute your app on Google Play to all devices running Android 2.2
or higher, and some services support even more devices.</p>
</div>
</div>
diff --git a/docs/html/google/play-services/setup.jd b/docs/html/google/play-services/setup.jd
index ec5d26f..2994c2c 100644
--- a/docs/html/google/play-services/setup.jd
+++ b/docs/html/google/play-services/setup.jd
@@ -8,34 +8,55 @@ page.title=Setup
Manager</a>. The download includes the client library and code samples.
</p>
-<p>
- To set up the Google Play services SDK:
-</p>
+<p>You must download the Google Play services SDK in order to develop using the
+<a href="{@docRoot}reference/gms-packages.html">Google Play services APIs</a>. However, <strong>you
+cannot use the Android emulator</strong> to test an app that depends on the Google Play services
+APIs&mdash;you must use a real device running Android 2.2 or higher that includes
+Google Play Store.</p>
+
+
+<p>To install the Google Play services SDK for development:</p>
<ol>
- <li>
- Launch Eclipse and select <b>Window &gt; Android SDK Manager</b> or run <code>android</code>
- at the command line.
- </li>
- <li>
- Scroll to the bottom of the package list and select <b>Extras &gt; Google Play services</b>.
- The Google Play services SDK is downloaded to your computer and installed in your Android SDK environment at
- <code>&lt;android-sdk-folder&gt;/extras/google/google_play_services/</code>.
- </li>
- <li>Copy the <code>&lt;android-sdk-folder&gt;/extras/google/google_play_services/libproject/google-play-services_lib</code>
- library project to a location in your project's source tree.
- <p>If you are using Eclipse, import the library project into your workspace. Click <b>File > Import...</b>, select <b>Android > Existing
- Android Code into Workspace</b>, and browse to the copy of the library project to import it.</p>
- </li>
- <li>Reference the library project in your Android project.
- <p>See the
- <a href="{@docRoot}tools/projects/projects-eclipse.html#ReferencingLibraryProject">Referencing a Library Project for Eclipse</a>
- or <a href="{@docRoot}tools/projects/projects-cmdline.html#ReferencingLibraryProject">Referencing a Library Project on the Command Line</a>
- for more information on how to do this.</p>
- </li>
- <li>If you are using <a href="{@docRoot}tools/help/proguard.html">ProGuard</a>, add the following
- lines in the <code>&lt;project_directory&gt;/proguard-project.txt</code> file
- to prevent ProGuard from stripping away required classes:
+ <li>Launch the SDK Manager.
+ <ul>
+ <li>From Eclipse (with <a href="{@docRoot}tools/help/adt.html">ADT</a>),
+ select <strong>Window</strong> &gt; <strong>Android SDK Manager</strong>.</li>
+ <li>On Windows, double-click the <code>SDK Manager.exe</code> file at the root of the Android
+ SDK directory.</li>
+ <li>On Mac or Linux, open a terminal and navigate to the <code>tools/</code> directory in the
+ Android SDK, then execute <code>android sdk</code>.</li>
+ </ul>
+ </li>
+ <li>
+ Scroll to the bottom of the package list, select <b>Extras &gt; Google Play services</b>,
+ and install it.
+ <p>The Google Play services SDK is saved in your Android SDK environment at
+ <code>&lt;android-sdk-folder&gt;/extras/google/google_play_services/</code>.</p>
+ </li>
+ <li>Copy the <code>&lt;android-sdk-folder&gt;/extras/google/google_play_services/libproject/google-play-services_lib</code>
+ library project into the source tree where you maintain your Android app projects.
+ <p>If you are using Eclipse, import the library project into your workspace. Click <b>File > Import</b>, select <b>Android > Existing
+ Android Code into Workspace</b>, and browse to the copy of the library project to import it.</p>
+ </li>
+</ol>
+
+
+<p>To set up a project to use the Google Play services SDK:</p>
+
+<ol>
+ <li>Reference the library project in your Android project.
+ <p>See the
+ <a href="{@docRoot}tools/projects/projects-eclipse.html#ReferencingLibraryProject">Referencing a Library Project for Eclipse</a>
+ or <a href="{@docRoot}tools/projects/projects-cmdline.html#ReferencingLibraryProject">Referencing a Library Project on the Command Line</a>
+ for more information on how to do this.</p>
+ <p class="note"><strong>Note:</strong>
+ You should be referencing a copy of the library that you copied to your
+ source tree&mdash;you should not reference the library from the Android SDK directory.</p>
+ </li>
+ <li>If you are using <a href="{@docRoot}tools/help/proguard.html">ProGuard</a>, add the following
+ lines in the <code>&lt;project_directory&gt;/proguard-project.txt</code> file
+ to prevent ProGuard from stripping away required classes:
<pre>
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();