forked from google/google-api-java-client-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions.html
More file actions
86 lines (77 loc) · 3.2 KB
/
Copy pathinstructions.html
File metadata and controls
86 lines (77 loc) · 3.2 KB
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
<html>
<title>Picasa Web Albums Data API Atom XML Sample for Android</title>
<body>
<h2>Instructions for the Picasa Web Albums Data API Atom XML Sample for
Android</h2>
<h3>Browse Online</h3>
<ul>
<li><a
href="http://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg/picasa-atom-android-sample">Browse
Source</a>, or main file <a
href="http://code.google.com/p/google-api-java-client/source/browse/picasa-atom-android-sample/src/com/google/api/client/sample/picasa/PicasaAndroidSample.java?repo=samples">PicasaAndroidSample.java</a></li>
</ul>
<h3>Checkout Instructions</h3>
<p><b>Prerequisites:</b> install <a href="http://java.com">Java 6</a>, <a
href="http://mercurial.selenic.com/">Mercurial</a> and <a
href="http://maven.apache.org/download.html">Maven</a>. You may need to set
your <code>JAVA_HOME</code>.</p>
<pre><code>cd <i>[someDirectory]</i>
hg clone https://samples.google-api-java-client.googlecode.com/hg/ google-api-java-client-samples</code></pre>
<h3>Setup Project in Eclipse 3.5</h3>
<p><b>Prerequisites:</b> install <a href="http://www.eclipse.org/downloads/">Eclipse</a>,
the <a href="http://javaforge.com/project/HGE">Mercurial plugin</a>, the <a
href="http://m2eclipse.sonatype.org/installing-m2eclipse.html">Maven
plugin</a>, and the <a
href="http://developer.android.com/sdk/eclipse-adt.html#installing">Android
plugin</a>.</p>
<ul>
<li>Preferences:
<ul>
<li>Android: setup SDK location</li>
</ul>
</li>
<li>Window > Android SDK and AVD Manager
<ul>
<li>Follow instructions to install Package "Google API's by Google
Inc., Android API 8"</li>
<li>Follow instructions to create a new Android Virtual Device based on
target "Google API's (Google Inc.) - API Level 8"</li>
<li>Click "Start..." (wait a while...)</li>
<li>On home screen in emulator, click Menu button, Settings</li>
<li>Click on "Accounts and Sync"</li>
<li>Click on "Add Account"</li>
<li>Click "Google" and follow instructions</li>
</ul>
</li>
<li>Import <code>picasa-atom-android-sample</code> project
<ul>
<li>File > Import...</li>
<li>Select "General > Existing Project into Workspace" and click
"Next"</li>
<li>Click "Browse" next to "Select root directory", find <code><i>[someDirectory]</i>/google-api-java-client-samples/picasa-atom-android-sample</code>
and click "Next"</li>
<li>Click "Finish"</li>
</ul>
</li>
<li>Clean Project (if compile error about missing gen directory)
<ul>
<li>Select <code>picasa-atom-android-sample</code> project</li>
<li>Project > Clean...</li>
<li>Select "Clean projects selected below"</li>
<li>Click on "OK"</li>
</ul>
</li>
<li>Run
<ul>
<li>Right-click on project picasa-atom-android-sample</li>
<li>Run As > Android Application</li>
<li>On your device, click the Menu button to switch accounts or add a
new Album. Select and hold on an album to update or delete it.</li>
<li>There is also a demo for uploading photos. After taking a picture
using your Android device, browse your pictures, then click on "Share",
click "Picasa Sample", and the photo will be uploaded to Picasa Web Albums.</li>
</ul>
</li>
</ul>
</body>
</html>