Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
ba4f585
Remove bogus download link from instructions.
makaiwen Apr 15, 2011
d58db7e
Update for new apis console and new oob constant
Apr 27, 2011
9006bea
Update Buzz sample to use GoogleJsonError
Apr 27, 2011
fbc7aea
Java API client sample for TaskQueue API (written by vibhooti)
May 4, 2011
7514ef2
Update samples based on library changes.
May 5, 2011
1162813
merge with dev branch
May 5, 2011
22b5961
Samples for version 1.4.
May 7, 2011
6f52476
[Issue 193] Add sample for Buzz v1 on App Engine
May 9, 2011
b5b50b4
[Issue 198] Google Books Command Line Sample
May 25, 2011
72446ff
Move buzz oauth2 sample to default branch.
May 26, 2011
073ea36
remove the obsolete maven repo
aiuto Jun 1, 2011
888fa64
Convert code to use the versionless style for buzz and replace the up…
aiuto Jun 7, 2011
1baf531
move v1 out of the package
aiuto Jun 7, 2011
f24384b
fix v1.cmdnline in instructions
aiuto Jun 7, 2011
3dd5a2b
add Android OAuth sample for Tasks API
proppy Jun 8, 2011
d56310e
fixed Tasks API sample docstring
proppy Jun 8, 2011
3a9dbcc
Tasks API android sample fixups
proppy Jun 9, 2011
6b1e324
did a merge
aiuto Jun 9, 2011
67efade
fix some lint errors
aiuto Jun 10, 2011
26f21cc
re-apply patches
aiuto Jun 10, 2011
bb250e8
update buzz sample to 1.1.0-beta style API surface
aiuto Jun 23, 2011
e8905d2
http://codereview.appspot.com/4625061/
aiuto Jun 23, 2011
54b5b03
update Tasks API Android sample auth code
proppy Jul 8, 2011
9cb46d2
Update Buzz, Discovery, & Prediction samples to use new generated lib…
Aug 8, 2011
c80e3b4
update youtube-jsonc-sample
Aug 8, 2011
88241ec
update picasa & docs samples
Aug 9, 2011
908cb81
add file that was left out
Aug 9, 2011
a9ecf7d
Updating books-v1-json-cmdline-sample to use the new generated librar…
Aug 9, 2011
272a89a
merge
Aug 9, 2011
09155bb
Committing.
Aug 9, 2011
6cb93b5
Committing.
Aug 10, 2011
bd71f97
Prediction-cmdline-sample: Backoff for retries on checking training s…
Aug 10, 2011
4ce152b
Update many samples to new 1.5 library
Aug 29, 2011
5cafe02
Updating siteVerification sample to use the new 1.5 library
Aug 30, 2011
7f1b4f8
Updated chromewebstore, latitude, moderator to use new 1.5 library. A…
Aug 30, 2011
3651d6c
Updating siteVerification sample to use the new 1.5 libraries.
Aug 30, 2011
686f8fd
Updating taskqueue cample to use the new 1.5 library
Sep 1, 2011
e810a95
fix some instructions.html files and delete discovery-appengine-sample
Sep 2, 2011
bf9a21e
Adding buzz-android-sample/instructions.html
Sep 2, 2011
f11d679
Fix instructions.html files
Sep 15, 2011
629b228
Fix missing information in some instructions.html
Sep 22, 2011
54ea8c3
Fixing instructions.html of gdata samples
Sep 23, 2011
9cae9f8
Adding more information in prediction-cmdline-sample/instructions.html
Oct 4, 2011
8e9ad72
youtube-jsonc-sample: on success, return success code, not error code
Oct 7, 2011
28cae30
Update Java sample for Prediction API v1.4
ThomasGFu Oct 27, 2011
02290b2
temporary branch based on 1.6 library in preparation for release
Nov 3, 2011
66a9384
Updating cmdline samples to use the 1.6 library
rmistry Nov 4, 2011
1694357
Deleting the Buzz samples
rmistry Nov 4, 2011
bd30519
Update samples to Eclipse 3.7, new library
Nov 4, 2011
e80ab49
fix android samples
Nov 4, 2011
12a9295
client_secrets.json support
Nov 7, 2011
68e96c9
Update calendar-appengine-sample
Nov 7, 2011
efb3395
Pointing samples to 1.3.0-beta instead of 1.3.0-beta-SNAPSHOT
rmistry Nov 8, 2011
01d05ea
Merging in based-on-1.6
rmistry Nov 8, 2011
d76d2bd
Switch android sample to use android-maven-plugin properly
Nov 8, 2011
7c3d2fc
tasks-android-sample fixes to work with ProGuard
Nov 11, 2011
28db65f
Also update calendar & picasa android samples
Nov 11, 2011
f32f56b
[Issue 327] Google+ command-line sample
Nov 14, 2011
e3fd077
Fix bug in OAuth 2 cmdline flow.
Nov 14, 2011
87e6c53
[Issue 5414043] Adding Google Bigquery App Engine sample dashboard to…
Nov 21, 2011
aae147e
Removing old link from instructions.
Nov 21, 2011
aa76fbd
Adding instruction to initial instructions.
Nov 23, 2011
8e12e8c
Adding TODO comment to input App Engine project, better instructions.
Nov 23, 2011
1c443f3
Adding AdSense Management API v1.1 code samples.
Dec 16, 2011
370af5e
[based-on-1.7 branch] OAuth 2.0 updates
Feb 28, 2012
26cb52e
Upgrading prediction sample for Java to reflect Prediction API releas…
mco-gh Mar 7, 2012
46ec62f
Update calendar-appengine-sample and some others
Mar 8, 2012
8c7e36e
Update Android samples and calendar-cmdline-sample
Mar 12, 2012
d944192
[based-on-1.7 branch] Updating 11 cmdline samples to 1.7
rmistry Mar 12, 2012
b9f51bd
merge
rmistry Mar 12, 2012
8b09692
fix version in oauth2-cmdline-sample/pom.xml
Mar 12, 2012
a4ea058
tasks-android-sample
Mar 12, 2012
d591c33
plus-serviceaccount-cmdline-sample & urlshortener-robots-appengine-sa…
Mar 12, 2012
1d0b676
merge
Mar 12, 2012
36fc973
Merging based-on-1.7 with default
rmistry Mar 12, 2012
dcdd03c
fix main source file link
Mar 13, 2012
0b08278
fix version
Mar 13, 2012
aef50b8
fix link
Mar 13, 2012
5223328
fixed minor bug in instructions, code review is here:
mco-gh Mar 13, 2012
9a5649d
minor fixes to Android samples
Mar 22, 2012
741839c
delivery of java cmd line sample for google cloud storage with servic…
mco-gh Mar 22, 2012
c37041a
sample app showing how to use Google Cloud Storage with a service acc…
mco-gh Mar 23, 2012
7cf1406
Adding Ad Exchange Buyer API samples.
davidtorres Mar 29, 2012
2d5f3a7
Updating samples to 1.8.0-beta base library and 1.5.0-beta generated …
rmistry Apr 4, 2012
ab4dcef
Fixing picasa-android-sample
rmistry Apr 6, 2012
21f705b
[Issue 454] Wrong link in instructions html file
rmistry Apr 10, 2012
92df04a
calendar-appengine-sample: enable maven-gae-plugin from central repo …
Apr 16, 2012
10f4590
[Issue 455] GoogleKeyInitializer: samples and documentation
rmistry Apr 16, 2012
2a0c3ae
adding analytics samples. review done here: http://codereview.appspot…
May 1, 2012
cfeddad
update tasks-android-sample: use jars instead of Maven, and use Async…
May 9, 2012
862e7cf
Updating calendar-android-sample
rmistry May 11, 2012
9b1c9fb
Updating calendar-android-sample to refresh client view and use setFi…
rmistry May 18, 2012
364b587
Updating calendar-cmdline-sample to use Batch for inserts and deletes
rmistry May 18, 2012
fb1fd2f
Updating tasks-android-sample to 1.9.0 and 1.6.0
rmistry May 18, 2012
6d3f220
Updating all samples (except tasks-android-sample) to 1.9.0 and 1.6.0
rmistry May 18, 2012
ceaccc8
Fix calendar-android-sample/proguard.cfg
Jun 12, 2012
d27fa0c
[Issue 520] Update command-line + AppEngine samples for 1.10
Jun 14, 2012
f28205a
[Issue 520] Updated Android samples for 1.10
Jun 14, 2012
42bd4ce
Updated the samples for the 1.10.2 release
Jun 18, 2012
178ee24
Add DFA Reporting API cmdline sample code.
Jun 25, 2012
24bfc93
[Issue 541] Updated samples to use the 1.10.3 release.
Jun 26, 2012
524b8cb
calendar-preview-android-sample
Jun 27, 2012
592926a
merge
Jun 27, 2012
0b2e187
Fix IllegalArgumentException if account has been deleted.
Jun 28, 2012
788a4b8
Adding a dummy google-play-services.jar, fixing a javadoc warning and…
rmistry Jun 28, 2012
c6d4b69
cloudnotes-preview-android-sample
Jun 28, 2012
4e9be5d
bug fixes
Jun 28, 2012
9a443f6
fix typo
Jun 28, 2012
105d486
bug fixes to calendar-preview-android-sample
Jul 3, 2012
bfd940c
fix title
Jul 10, 2012
08a04f8
Fixing link in analytics-cmdline-sample/instructions.html
rmistry Jul 26, 2012
b183980
Issue 6455046: Add MCF Reporting API reference sample.
nafi3000 Jul 27, 2012
a75c259
[api issue 552] Android samples should attach source jars
Aug 1, 2012
1c2393b
merge
Aug 1, 2012
05dc78f
[Issue 6453081] Correct class name from 'McfApiReferenceSample' to 'M…
nafi3000 Aug 2, 2012
c5cc466
[Issue 544] Fusion Tables API Java Sample
rmistry Aug 6, 2012
ced59e5
[api-samples based-on-1.11] Update some samples to 1.11
Aug 28, 2012
deee31d
[api-samples based-on-1.11] update 2 samples
Aug 30, 2012
2e2182e
[api-samples based-on-1.11] cmdline-samples: books, dfareporting, & d…
Aug 30, 2012
4f8ca27
[api-samples based-on-1.11] more cmdline-samples
Aug 30, 2012
ce94e4d
[api-samples based-on-1.11] taskqueue-cmdline-sample & storage-servic…
Sep 4, 2012
f2fed64
[api-samples based-on-1.11] update rev# for some cmdline samples
Sep 4, 2012
d52520c
[api-samples based-on-1.11] update appengine-samples
Sep 5, 2012
666a109
merge based-on-1.11
Sep 5, 2012
a2cb600
[api-samples based-on-1.11] calendar-preview-android-sample
Sep 5, 2012
d2a2548
[api-samples] update calendar-android-sample & tasks-android-sample
Sep 5, 2012
50ad274
files accidentally left off
Sep 5, 2012
43fcc5a
[api-samples] fix rev for prediction-cmdline-sample
Sep 5, 2012
0c5590c
Adding Drive API cmdline sample for media uploads/downloads
rmistry Sep 5, 2012
5c5e777
merge
rmistry Sep 5, 2012
d543e25
[Issue 6489124] Removing -SNAPSHOT from pom.xml files
ngmiceli-g Sep 14, 2012
87c3502
DFA Reporting API samples for version 1.1
Sep 28, 2012
a940de9
Fixing DFA Reporting API v1.1 examples
Sep 28, 2012
4b88b48
[api-samples based-on-1.12] update calendar-cmdline-sample for 1.12
Oct 19, 2012
01110dc
Updating samples to 1.9.0-beta
rmistry Oct 23, 2012
d6be1df
Adding AdSense Host API v4.1 example code.
Oct 23, 2012
2532b72
[api samples based-on-1.12] Updated sample instructions, and pom for …
ngmiceli-g Oct 24, 2012
e3d26df
update calendar-android-sample and delete calendar-preview-android-sa…
Oct 25, 2012
20fda58
merge
Oct 25, 2012
68aeed1
Updating taskqueue and storage-serviceaccount cmdline samples to 1.12…
rmistry Nov 1, 2012
c227595
[api samples based-on-1.12] calendar-appengine-sample and calendar-cm…
Nov 1, 2012
4dd1440
[api samples based-on-1.12] update urlshortener-robots-appengine-samp…
Nov 1, 2012
f8f43d1
[api samples based-on-1.12] tasks-android-sample
Nov 2, 2012
e6ec64b
disable logging
Nov 2, 2012
e0b3695
redirect calendar-preview-android-sample instructions to calendar-and…
Nov 3, 2012
2b43e3c
api samples based-on-1.12: switch to final 1.12.0-beta for calendar-c…
Nov 7, 2012
8a84b83
api samples based-on-1.12: Updating remaining samples to final 1.12.0…
ngmiceli-g Nov 8, 2012
04224d3
Merged based-on-1.12
ngmiceli-g Nov 8, 2012
aa08020
release.html
Nov 8, 2012
e8d7b1a
Added samples to support new funcionality in AdSense Management API 1.2
JoseAlcerreca Nov 9, 2012
5e2f59d
api samples: Updating adsensehost-cmdline-sample to final 1.12.0-beta
ngmiceli-g Nov 9, 2012
659d05e
Initial version of the Google Compute Engine API Java Client Command-…
Nov 12, 2012
81a2ec1
api samples: Fix instructions for TaskQueue Cmdline Sample
ngmiceli-g Nov 26, 2012
4538f48
Updating samples to 1.13.2-beta
ngmiceli-g Jan 16, 2013
96351d7
updated to reference preferred Google Cloud Storage URL
mco-gh Jan 17, 2013
92569b9
Google Compute Engine API Java Client Command-line Sample: Updating s…
Feb 28, 2013
ec9e365
api samples: Update samples to 1.14.1-beta
ngmiceli-g Mar 25, 2013
980a6d6
api samples: update "installed" to "web" in calendar-appengine client…
Mar 25, 2013
3b822fd
Updating Ad Exchange Buyer API examples for v1.2. https://codereview.…
Mar 28, 2013
173d0f1
api samples: remove guava dep from proguard config
Apr 4, 2013
90e7a46
merge
Apr 4, 2013
3c1010a
api samples Issue 762: Update samples to use central Maven repository
ngmiceli-g Apr 4, 2013
eaeead4
api samples: Add a "Getting Started" sample using G+ on AppEngine to …
ngmiceli-g Apr 16, 2013
bb6f1ea
plus-preview-appengine-sample: minor fixes
Apr 17, 2013
1f90fc2
Add storage-cmdline-sample.
Capstan May 10, 2013
1c52d52
api samples: Update to 1.15.0-rc
ngmiceli-g May 10, 2013
61a9110
Remove errant OWNERS file.
Capstan May 10, 2013
2cf2beb
Merge.
Capstan May 10, 2013
e9ad125
remove release.txt
May 15, 2013
97d2940
hgignore cloudnotes-preview-android-sample-AppEngine/war/WEB-INF/appe…
May 20, 2013
253873a
api samples: Add plus-appengine-sample
ngmiceli-g May 22, 2013
21d9abe
Update dfareporting-cmdline-sample to v1.2
ngmiceli-g Jun 14, 2013
30c8cfc
Updating AdSense Management API samples to v1.3
Jun 19, 2013
5fd5b5c
Updating adsense service dependency to match version in Maven central.
Jun 21, 2013
3ffa2ea
api samples: fix file permissions
Jun 27, 2013
365aee7
api samples: add some whitespace
Jun 28, 2013
b383ad3
api samples: clean up whitespace nicer
Jun 28, 2013
537a7c8
api samples: Update samples to 1.16.0-rc
ngmiceli-g Aug 6, 2013
9a101a8
changed appengine version to 1.8.3
Aug 9, 2013
da485c8
api samples: Remove latitude sample
ngmiceli-g Aug 13, 2013
8733037
Merge
ngmiceli-g Aug 13, 2013
051a7d4
api samples: changed tag name to project.appengine.version to increas…
Aug 13, 2013
3072dfd
Updating DFA Reporting API examples for v1.3 https://codereview.appsp…
Aug 21, 2013
bee44ea
api samples: Updates to style, using getDefaultInstance
ngmiceli-g Aug 23, 2013
6386353
Updating instructions to reference correct API version.
Aug 29, 2013
3d63f12
Updating AdX Buyer REST samples to v1.3.
msaniscalchi Sep 9, 2013
4e6468b
api samples: Android samples switched to Gradle and Android Studio
Sep 12, 2013
fec564b
update to 1.17.0-rc
peleyal Sep 12, 2013
e1e87e2
merge
peleyal Sep 12, 2013
3b40d26
Fix build of calendar & tasks android samples
Sep 13, 2013
c8bbaef
Adding Ad Exchange Seller REST API v1.1 sample, based off of AdSense …
Sep 27, 2013
9057705
Index: adexchangebuyer-cmdline-sample/pom.xml
Apr 1, 2014
93fb03f
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
4801bc1
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
d677150
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
26dd1e3
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
84d7754
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
e73fe8b
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
22077ff
Index: adexchangebuyer-cmdline-sample/src/main/java/com/google/api/se…
Apr 1, 2014
96aa119
Index: adexchangeseller-cmdline-sample/pom.xml
Apr 1, 2014
1f830cf
Index: adsense-cmdline-sample/pom.xml
Apr 1, 2014
521cf5b
Index: adsensehost-cmdline-sample/pom.xml
Apr 1, 2014
fcef951
Index: analytics-cmdline-sample/pom.xml
Apr 1, 2014
9a0e586
Index: bigquery-appengine-sample/pom.xml
Apr 1, 2014
5aa7fcd
Index: books-cmdline-sample/pom.xml
Apr 1, 2014
e1bb90a
Index: calendar-android-sample/build.gradle
Apr 1, 2014
90e22d2
Index: calendar-appengine-sample/pom.xml
Apr 1, 2014
86e73c9
Index: calendar-cmdline-sample/pom.xml
Apr 1, 2014
3866e8c
Index: compute-engine-cmdline-sample/pom.xml
Apr 1, 2014
34b55b1
Index: dfareporting-cmdline-sample/pom.xml
Apr 1, 2014
4274439
Index: discovery-cmdline-sample/pom.xml
Apr 1, 2014
f714889
Index: drive-cmdline-sample/pom.xml
Apr 1, 2014
c50c3d7
Index: fusiontables-cmdline-sample/pom.xml
Apr 1, 2014
6816fe2
Index: oauth2-cmdline-sample/pom.xml
Apr 1, 2014
f2f2f55
Index: oauth2-cmdline-sample/src/main/java/com/google/api/services/sa…
Apr 1, 2014
09ae60b
Index: picasa-cmdline-sample/pom.xml
Apr 1, 2014
cce5e98
Index: plus-appengine-sample/pom.xml
Apr 1, 2014
59813a4
Index: plus-cmdline-sample/pom.xml
Apr 1, 2014
5757c78
Index: plus-serviceaccount-cmdline-sample/pom.xml
Apr 1, 2014
efc63c0
Index: prediction-cmdline-sample/pom.xml
Apr 1, 2014
b7603bb
Index: shared/gdata/shared-sample-gdata/pom.xml
Apr 1, 2014
4192adb
Index: shared/gdata/shared-sample-picasa/pom.xml
Apr 1, 2014
63f1d06
Index: siteVerification-cmdline-sample/pom.xml
Apr 1, 2014
3003687
Index: storage-cmdline-sample/pom.xml
Apr 1, 2014
7c53fa3
Index: storage-serviceaccount-appengine-sample/pom.xml
Apr 1, 2014
e607414
Index: storage-serviceaccount-cmdline-sample/pom.xml
Apr 1, 2014
30d8496
Index: taskqueue-cmdline-sample/pom.xml
Apr 1, 2014
31d55f1
Index: tasks-android-sample/build.gradle
Apr 1, 2014
5775bdc
Index: urlshortener-robots-appengine-sample/pom.xml
Apr 1, 2014
2a05bc3
api 1.18: Updated samples to depend on the new library.
Apr 10, 2014
8161f57
Updated instructions for samples
Apr 21, 2014
a31c5e9
Removing Ad Exchange Buyer REST Samples
msaniscalchi Jun 6, 2014
d409957
api: Remove obsolete GData API samples.
Jun 9, 2014
f20ac8c
Fix instruction links and add link to storage docs.
marcgel Jul 2, 2014
d1883a3
api samples: Remove two storage-service account XML samples. They now…
Jul 9, 2014
91bcd7f
api samples: fix a minor style error
Jul 10, 2014
c9556c2
Style fixes for samples.
Jul 10, 2014
9fbef45
api samples: Update dependencies.
Jul 26, 2014
cf2858f
Create README.md
wonderfly Jan 23, 2015
012bf76
Add an empty .gitignore
wonderfly Jan 23, 2015
af27369
Refactor, simplify and modernize GCS sample
Capstan May 8, 2015
12cb7b9
Update Android samples for Android Studio 1.2.1.1
Capstan Jun 3, 2015
7e49ade
Update to fix reference to sample_settings.json
marcgel Aug 19, 2015
897eada
'list' method: add null check on bucket's contents
DazWilkin Aug 21, 2015
788219c
GCS reports "MB" but the measure is "MiB"
DazWilkin Aug 21, 2015
aba1a7a
Update sample to Prediction API 1.6
kevinthecheung Dec 8, 2015
a15bd28
Update README for Prediction API 1.6
kevinthecheung Dec 8, 2015
e2294ca
Fix README title
kevinthecheung Dec 8, 2015
fa161cb
Add details on getting P12 file
kevinthecheung Dec 15, 2015
0b5c789
Fix mismatched HTML tags
camsaul Feb 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update calendar-android-sample and delete calendar-preview-android-sa…
  • Loading branch information
Yaniv Inbar committed Oct 25, 2012
commit e3d26df71cce494d580570812eace3f9a6f87d49
2 changes: 1 addition & 1 deletion bigquery-appengine-sample/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>
<classpathentry kind="output" path="target/war/WEB-INF/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
eclipse.preferences.version=1
filesCopiedToWebInfLib=appengine-api-labs.jar|appengine-endpoints.jar|jsr107cache-1.1.jar|appengine-jsr107cache-1.7.1.jar|appengine-api-1.0-sdk-1.7.1.jar|datanucleus-jpa-1.1.5.jar|datanucleus-appengine-1.0.10.final.jar|datanucleus-core-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar
filesCopiedToWebInfLib=appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.7.2.1.jar|jsr107cache-1.1.jar|appengine-api-1.0-sdk-1.7.2.1.jar|datanucleus-jpa-1.1.5.jar|datanucleus-appengine-1.0.10.final.jar|datanucleus-core-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar
gaeDeployDialogSettings=
16 changes: 11 additions & 5 deletions calendar-android-sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,26 @@
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15"/>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />

<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme" >
<activity
android:name="com.google.api.services.samples.calendar.android.CalendarSample"
android:label="@string/app_name" >
android:name=".CalendarSampleActivity"
android:label="@string/app_name"
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AddOrEditCalendarActivity" >
</activity>
</application>

</manifest>
118 changes: 82 additions & 36 deletions calendar-android-sample/instructions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,56 @@
<body>
<h2>Instructions for the Calendar V3 Android Sample</h2>

<h3>Warning</h3>

This sample is for illustrative purposes only. Please instead use the native
Calendar APIs like the
<a
href="http://developer.android.com/guide/topics/providers/calendar-provider.html">Calendar
Provider API</a>.

<h3>Browse Online</h3>

<ul>
<li><a
href="http://code.google.com/p/google-api-java-client/source/browse?repo=samples#hg/calendar-android-sample">Browse
Source</a>, or main file <a
href="http://code.google.com/p/google-api-java-client/source/browse/calendar-android-sample/src/main/java/com/google/api/services/samples/calendar/android/CalendarSample.java?repo=samples">CalendarSample.java</a>
href="http://code.google.com/p/google-api-java-client/source/browse/calendar-android-sample/src/main/java/com/google/api/services/samples/calendar/android/CalendarSampleActivity.java?repo=samples">CalendarSampleActivity.java</a>
</li>
</ul>

<h3>Register Your Application</h3>

<p>You first need to register your Android application and sign up for
access to the Google Calendar API in the Google APIs Console. First, you
need the "Signing certificate fingerprint (SHA1)" for the debug and release
builds:</p>
<pre>
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1
Enter keystore password: android

keytool -exportcert -alias androiddebugkey -keystore my-release-key.keystore | openssl sha1
</pre>

<p>Next, register in the Google APIs Console:</p>

<ul>
<li>Visit the <a
href="https://code.google.com/apis/console/?api=calendar">Google apis
console</a>
</li>
<li>If this is your first time, click "Create project..."</li>
<li>Otherwise, click on the drop down under the "Google apis" logo at
the top left, and click "Create..." under "Other projects"</li>
<li>Click on "API Access", and then on "Create an OAuth 2.0 Client
ID...".</li>
<li>Enter a product name and click "Next".</li>
<li>Select "Installed application", select "Android", enter
com.google.api.services.samples.calendar.android for "Package name", paste
the SHA1 fingerprint for the debug certificate above into "Signing
certificate fingerprint (SHA1)", and click "Create client ID".</li>
<li>Click "Create an OAuth 2.0 Client ID..." and follow the directions
from the previous step for the release certificate.</li>
</ul>

<h3>Checkout Instructions</h3>
Expand All @@ -19,37 +61,31 @@ <h3>Checkout Instructions</h3>
<b>Prerequisites:</b> install <a href="http://java.com">Java 6</a>, <a
href="http://mercurial.selenic.com/">Mercurial</a> (requires 1.6 or
higher). You may need to set your
<code>JAVA_HOME</code> and <code>ANDROID_HOME</code>.
<code>JAVA_HOME</code>
and
<code>ANDROID_HOME</code>
.
</p>

<p>
<b>Important:</b> after checking out the project, and before compiling and
running it, you need to edit
<code>ClientCredentials.java</code>
to enter the required API key generated from <a
href="https://code.google.com/apis/console/?api=calendar">Google APIs Console</a>.
Otherwise, without a valid key, you will only be able to make a small number of
queries. When you exceed this limit, you will receive a
<code>403 Forbidden</code>
error with the message
<code>Daily Limit Exceeded. Please sign up</code>
.
</p>
<pre>
<code>
cd <i>[someDirectory]</i>
hg clone https://code.google.com/p/google-api-java-client.samples/ google-api-java-client-samples
cd google-api-java-client-samples/calendar-android-sample
<i>[editor]</i> src/main/java/com/google/api/services/samples/calendar/android/ClientCredentials.java
</code>
</pre>

<h3>Setup Project in Eclipse 3.7 (Indigo)</h3>
<p>To enable logging of HTTP requests and responses (highly recommended
when developing):</p>

<pre>
adb shell setprop log.tag.HttpTransport DEBUG
</pre>

<h3>Setup Project in Eclipse</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> (optional), and the <a
the <a href="http://javaforge.com/project/HGE">Mercurial plugin</a>
(optional), and the <a
href="http://developer.android.com/sdk/eclipse-adt.html#installing">Android
plugin</a>.
</p>
Expand All @@ -58,41 +94,51 @@ <h3>Setup Project in Eclipse 3.7 (Indigo)</h3>
<li>Preferences:
<ul>
<li>Android: setup SDK location</li>
</ul></li>
<li>Window &gt; Android SDK and AVD Manager
</ul>
</li>
<li>Window &gt; Android SDK 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>Check on "Google APIs" under "Android 4.1.6 (API Level 16)"</li>
<li>Check on "Google Play services" under "Extras".</li>
<li>Click on "Install X packages..."</li>
</ul>
</li>
<li>Import <code>calendar-android-sample</code> project
<ul>
<li>File &gt; Import...</li>
<li>Select "General &gt; 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/calendar-android-sample
</code> and click "Next"</li>
</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>calendar-android-sample</code> project</li>
<li>Select <code>calendar-android-sample</code> project
</li>
<li>Project &gt; Clean...</li>
<li>Select "Clean projects selected below"</li>
<li>Click on "OK"</li>
</ul></li>
</ul>
</li>
<li>NOTE: you must use a physical device for developing and testing
because Google Play services cannot be installed on an emulator.</li>
<li>Run
<ul>
<li>Right-click on project calendar-android-sample</li>
<li>Run As &gt; Android Application</li>
</ul></li>
<li>Select the physical device and click OK.</li>
<li>Sample the app by creating a new calendar using the Menu and
updating/deleting a calendar using a long-press. <b>Be careful!</b>
You are making real changes to the Google account used, so you may
want to use a test account. As you make changes in the app, you can
see the effect online at <a href="http://google.com/calendar">google.com/calendar</a>.
Make sure you have Google Calendar set up beforehand for this account.
</li>
</ul>
</li>
</ul>
</body>
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-api-client-1.12.0-beta-SNAPSHOT-sources.jar
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-api-client-android-1.12.0-beta-SNAPSHOT-sources.jar
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-api-services-calendar-v3-rev20120831-1.9.0-beta-sources.jar
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-http-client-1.12.0-beta-SNAPSHOT-sources.jar
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-http-client-android-1.12.0-beta-SNAPSHOT-sources.jar
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-http-client-gson-1.12.0-beta-SNAPSHOT-sources.jar

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/google-oauth-client-1.12.0-beta-SNAPSHOT-sources.jar
Binary file not shown.
Binary file removed calendar-android-sample/libs/guava-11.0.1.jar
Binary file not shown.
Binary file added calendar-android-sample/libs/guava-jdk5-13.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src=../libs-sources/guava-jdk5-13.0-sources.jar
Binary file removed calendar-android-sample/libs/jsr305-1.3.9.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions calendar-android-sample/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.

#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt

# Project target.
target=Google Inc.:Google APIs:8
target=Google Inc.:Google APIs:16
Binary file removed calendar-android-sample/res/drawable-hdpi/icon.png
Binary file not shown.
Binary file removed calendar-android-sample/res/drawable-ldpi/icon.png
Binary file not shown.
Binary file removed calendar-android-sample/res/drawable-mdpi/icon.png
Binary file not shown.
34 changes: 34 additions & 0 deletions calendar-android-sample/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>

<string name="app_name">Google Calendar Sample</string>
<string name="accounts">Accounts</string>
<string name="description_add">Add Calendar</string>
<string name="summary">Title</string>
<string name="summary_hint">Enter the calendar title</string>
<string name="cancel">Cancel</string>
<string name="save">Save</string>
<string name="icon_desc">Application icon</string>
<string name="title_separator_desc">Title separator</string>
<string name="refresh">Refresh</string>
<string name="batchadd">Copy Calendar x3 (Batch)</string>
<string name="edit">Edit Calendar</string>
<string name="delete">Delete Calendar</string>
<string name="delete_title">Delete Calendar?</string>
<string name="yes">Yes</string>
<string name="no">No</string>
<string name="error">Error</string>
<string name="error_format">[Error] %s</string>

</resources>
57 changes: 19 additions & 38 deletions ...e/src/main/java/com/google/api/services/samples/calendar/android/AsyncDeleteCalendar.java
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright (c) 2012 Google Inc.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
Expand All @@ -14,53 +14,34 @@

package com.google.api.services.samples.calendar.android;

import android.app.ProgressDialog;
import android.os.AsyncTask;
import com.google.api.client.googleapis.json.GoogleJsonResponseException;

import java.io.IOException;

/**
* Asynchronously delete a calendar with a progress dialog.
*
* @author Ravi Mistry
* Asynchronously delete a calendar.
*
* @author Yaniv Inbar
*/
class AsyncDeleteCalendar extends AsyncTask<Void, Void, Void> {
class AsyncDeleteCalendar extends CalendarAsyncTask {

private final CalendarSample calendarSample;
private final ProgressDialog dialog;
private final int calendarIndex;
private com.google.api.services.calendar.Calendar client;
private final String calendarId;

AsyncDeleteCalendar(CalendarSample calendarSample, int calendarIndex) {
this.calendarSample = calendarSample;
client = calendarSample.client;
this.calendarIndex = calendarIndex;
dialog = new ProgressDialog(calendarSample);
AsyncDeleteCalendar(CalendarSampleActivity calendarSample, CalendarInfo calendarInfo) {
super(calendarSample);
calendarId = calendarInfo.id;
}

@Override
protected void onPreExecute() {
dialog.setMessage("Deleting calendar...");
dialog.show();
}

@Override
protected Void doInBackground(Void... arg0) {
String calendarId = calendarSample.calendars.get(calendarIndex).id;
protected void doInBackground() throws IOException {
try {
client.calendars().delete(calendarId).execute();
calendarSample.calendars.remove(calendarIndex);
} catch (IOException e) {
calendarSample.handleGoogleException(e);
} finally {
calendarSample.onRequestCompleted();
} catch (GoogleJsonResponseException e) {
// 404 Not Found would happen if user tries to delete an already deleted calendar
if (e.getStatusCode() != 404) {
throw e;
}
}
return null;
}

@Override
protected void onPostExecute(Void result) {
dialog.dismiss();
calendarSample.refresh();
model.remove(calendarId);
}
}
Loading