@@ -8,19 +8,21 @@ <h3>Browse Online</h3>
8
8
9
9
< ul >
10
10
< li > < a
11
- href ="http ://code.google. com/p /google-api-java-client/source/browse?repo=samples#hg /tasks-android-sample "> Browse
11
+ href ="https ://github. com/google /google-api-java-client-samples/tree/master /tasks-android-sample "> Browse
12
12
Source</ a > , or main file < a
13
- href ="http ://code.google. com/p /google-api-java-client/source/browse /tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java?repo=samples "> TasksSample.java</ a >
13
+ href ="https ://github. com/google /google-api-java-client-samples/tree/master /tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java "> TasksSample.java</ a >
14
14
</ li >
15
15
</ ul >
16
16
17
17
< h3 > Prerequisites</ h3 >
18
18
19
19
< ul >
20
20
< li > Install < a href ="http://java.com "> Java</ a > (requires 6 or higher)</ li >
21
- < li > Install < a href ="http://mercurial.selenic.com/ "> Mercurial</ a > (requires 1.6 or higher).</ li >
22
- < li > Unzip < a href ="http://services.gradle.org/distributions/gradle-1.6-bin.zip "> Gradle
23
- 1.6</ a > </ li >
21
+ < li > Install < a href ="http://git-scm.com/downloads "> Git</ a > (suggested 1.7.10 or higher)
22
+ or < a href ="http://github.com "> GitHub</ a > client (< a href ="http://mac.github.com/ "> Mac</ a > )
23
+ (< a href ="http://windows.github.com/ "> Windows</ a > )</ li >
24
+ < li > Unzip < a href ="http://services.gradle.org/distributions/gradle-2.2.1-bin.zip "> Gradle
25
+ 2.2.1</ a > </ li >
24
26
< li > Install either < a
25
27
href ="http://developer.android.com/sdk/installing/studio.html "> Android
26
28
Studio</ a > (which bundles the Android SDK) or just < a
@@ -29,6 +31,7 @@ <h3>Prerequisites</h3>
29
31
ANDROID_HOME to the Android SDK installation directory, which for Android Studio is in the
30
32
"sdk" subdirectory.
31
33
</ li >
34
+ <!-- No longer necessary with latest Android SDK?
32
35
<li>Install google-play-services.jar
33
36
</br>The first time you run this sample, you will need to install the google-play-services.jar. You can either do it through Eclipse, or by running the "mvn install" command.
34
37
<ul>
@@ -49,7 +52,7 @@ <h3>Prerequisites</h3>
49
52
</pre>
50
53
</li>
51
54
</ul>
52
- </ li >
55
+ </li>-->
53
56
</ ul >
54
57
55
58
< h3 > Register Your Application</ h3 >
@@ -102,7 +105,7 @@ <h3>Checkout Instructions</h3>
102
105
103
106
< pre >
104
107
cd < i > [someDirectory]</ i >
105
- hg clone https://code.google. com/p/ google-api-java-client.samples/ google-api-java-client-samples
108
+ git clone https://github. com/google/ google-api-java-client-samples.git
106
109
cd google-api-java-client-samples/tasks-android-sample
107
110
</ pre >
108
111
@@ -115,8 +118,8 @@ <h3>Set Up Project in Android Studio</h3>
115
118
< li > Run this command in a terminal:
116
119
< pre > $ANDROID_HOME/tools/android sdk</ pre >
117
120
</ li >
118
- < li > Under "Tools", check on "Android SDK Build-tools" revision 18 .0.1.</ li >
119
- < li > Under "Android 2.2 (API 8 )", check on "SDK Platform" and "Google APIs".</ li >
121
+ < li > Under "Tools", check on "Android SDK Build-tools" revision 22 .0.1.</ li >
122
+ < li > Under "Android 5.1.1 (API 22 )", check on "SDK Platform" and "Google APIs".</ li >
120
123
< li > Under "Extras", check on "Android Support Repository", "Android Support Library",
121
124
and "Google Repository".
122
125
</ li >
@@ -140,11 +143,12 @@ <h3>Set Up Project in Android Studio</h3>
140
143
</ ul >
141
144
</ li >
142
145
< li > Select "Use local gradle distribution" with "Gradle home" of
143
- < code > < i > [someDirectory]</ i > /gradle-1.6 </ code > and click OK.
146
+ < code > < i > [someDirectory]</ i > /gradle-2.2.1 </ code > and click OK.
144
147
</ li >
145
148
</ ul >
146
149
</ li >
147
- < li > Open AndroidManifest.xml and change the package to match the name you registered in the
150
+ < li > Open AndroidManifest.xml and change the package attribute of the manifest, initially
151
+ "com.google.api.services.samples.tasks.android", to match the name you registered in the
148
152
Google Cloud Console, e.g. "org.example.tasks.janedoe20130911".
149
153
</ li >
150
154
< li > Rename the Java package: right-click on src/main/java, click New, click Package, and then
0 commit comments