Prerequisites: install Java
6, Mercurial
(requires 1.6 or higher). You may need to set your
JAVA_HOME
and
ANDROID_HOME
.
WARNING:Google Play services is required to compile and run this sample. It will launch soon. Please check on https://developers.google.com/android/google-play-services for more details. For now, we have provided a dummy google-play-services.jar that only compiles the sample but will not run correctly.
Android application registration: 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:
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
Next, register on the Google APIs Console:
Go to https://code.google.com/apis/console/
click on the "API Access" tab
click on "Create an OAuth 2.0 client ID"
Product name: My CloudNotes Sample (or whatever you want to call it)
click "Next"
select "Installed application"
select "Android"
Package name: com.google.api.services.samples.calendar.android
Signing certificate fingerprint (SHA1): (paste SHA1 fingerprint from above)
click "Create client ID"
To enable logging of HTTP requests and responses (highly recommended
when developing):
adb shell setprop log.tag.HttpTransport DEBUG
cd /tmp
hg clone https://code.google.com/p/google-api-java-client.samples/ samples
Prerequisites: install Eclipse, the Mercurial plugin (optional), and the Android plugin.
cloudnotes-preview-android-sample
and cloudnotes-preview-android-sample-AppEngine
projects
/tmp/samples/endpoints
and click "Next"
cloudnotes-preview-android-sample
project