This is the sample Android App and App Engine Backend for the GridKA 2014 workshop "Getting started with Android and App Engine"
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
app
backend
gradle/wrapper
.gitignore
ICAN.iml
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

GridKA 2014 Android Workshop

This is the sample app for the GridKA workshop "Getting started with Android and App Engine".

You can find the main activity at: MainActivity.java

This Activity also has the AsynTasks to load data from the App Engine endpoint as inner classes.

App Engine

The actual App Engine endpoint can be found in: MyEndpoint.java

To use your own backend, a new project must be created in the Google Developers Console. Then you need to add your own App Engine project id to the appengine-web.xml file. Also the AsyncTasks in the MainActivity have the name of the cloud endpoint and must be changed.

The backend is built and deployed to App Engine with the Gradle task appengineUpdate executed from a terminal. Make sure that you are in the root directory of the project and execute the following command:

./gradlew backend:appengineUpdate

The task will open up a browser and load the URL for the authentication. Depending on the system, the URL is displayed only in the terminal. Copy the code displayed in the browser to the terminal and press enter. The backend is now deployed and can be used. In your browser, the project can be called with the address your-project-id.appspot.com.

License

This sources are available under CC0/public domain. This means you are free to use them in whatever way you like, without needing to leave any copyright notice.