24
Shay Erlichmen Google Developer Expert - Cloud CTO Samba.me Building Cloud-Powered Android Applications

Building cloud powered android applications

Embed Size (px)

DESCRIPTION

A hands-on session which will demonstrate how to take an existing application and write a fully functional backend on Google Cloud Platform. We will show you how quickly you can start by using Android Studio integration with Google Cloud Endpoint and hopefully by the end of the session we will have a live backend in production that we all can use. As delivered at DroidCon Tel Aviv 2014 by: Shay Erlichmen, Samba.me http;//il.droidcon.com

Citation preview

Page 1: Building cloud powered android applications

Shay ErlichmenGoogle Developer Expert - CloudCTO Samba.me

Building Cloud-Powered Android Applications

Page 2: Building cloud powered android applications

Agenda: June 12th, 2014

Overview: Android Studio and Google Cloud Endpoints

Demo: adding a Cloud backend to an Android app in 15 minutes!

Future directions

Questions and answers

1

2

3

4

Page 3: Building cloud powered android applications

Agenda: June 12th, 2014

Overview: Android Studio and Google Cloud Endpoints1

2

3

4

Demo: adding a Cloud backend to an Android app in 15 minutes!

Future directions

Questions and answers

Page 4: Building cloud powered android applications

Download – Android Studio Early Access Preview:http://developer.android.com/sdk!

Android Studio

An open-source IDE built for Android

• Based on IntelliJ IDEA with coding assistance tools to help write Java code

• Integrated visual and layout designer

• Large number of bundled static code analysis tools (Lint) to help build quality apps

• Integrated with Gradle to enable one build across dev environment (IDE, command line, CI server)

Page 5: Building cloud powered android applications

Google Cloud Endpoints

Extremely simple way to build server side logic on full power, management free Google App Engine platform

• Uses App Engine’s auto-scaling and high-availability

• Uses auto-generated, strongly typed, mobile optimized client libraries for Android, iOS and web.

• Exposes standards based REST interfaces with built-in authorization

Page 6: Building cloud powered android applications

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Taking the plumbing out of API programming

Cloud Endpoints

Clients

Page 7: Building cloud powered android applications

Taking the complexity out of multi-client development

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Cloud Endpoints

Clients

Page 8: Building cloud powered android applications

Taking the risk out of API development

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Mobile Backend Running on Google App Engine Instances

Cloud Endpoints

Clients

Page 9: Building cloud powered android applications

Android Studio + Cloud Endpoints

Easiest way for mobile developers to connect to Google Cloud Platform

• Create Google App Engine backends in Android Studio

• Generate Java-specific bindings for use in Android app

• Benefit from as-you-type validations and quick-fixes when defining the backend API

• Use App Engine-specific Gradle tooling that allows for a unified client/backend build

Easiest way to connect to Google Cloud Platform

Page 10: Building cloud powered android applications

Agenda: June 12th, 2014

Overview: Android Studio and Google Cloud Endpoints1

2

3

4

Demo: adding a Cloud backend to an Android app in 15 minutes!

Future directions

Questions and answers

Page 11: Building cloud powered android applications

Todo.txt: a simple to-do task management app

Page 12: Building cloud powered android applications

...which is loved by Play Store users

Page 13: Building cloud powered android applications

...and best of all, it’s open-sourced!

Page 14: Building cloud powered android applications

Images by Connie Zhou

Demo: adding a Google Cloud backend to Todo.txt!

Page 15: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

pullFromRemote

pushToRemote storeTask().execute()query.get() transaction.commit()

Page 16: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

storeTask().execute()query.get() transaction.commit()

Page 17: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

storeTask().execute()query.get() transaction.commit()

Page 18: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

storeTask().execute()query.get() transaction.commit()

Page 19: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

storeTask().execute()query.get() transaction.commit()

Page 20: Building cloud powered android applications

getTask().execute()

Cloud Datastore

App Engine backend

Clou

d En

dpoi

ntsTodo.txt app

Clie

nt L

ibra

ries

Demo Architecture

pullFromRemote

pushToRemote storeTask().execute()query.get() transaction.commit()

Page 21: Building cloud powered android applications

Agenda: June 12th, 2014

Overview: Android Studio and Google Cloud Endpoints

Demo: adding a Cloud backend to an Android app in 15 minutes!

Future directions

1

2

3

4 Questions and answers

Page 22: Building cloud powered android applications

… but more details in Google I/O ‘14!

What’s coming next?

API Management Console

Improved getting started experience

Third party API clients access API Analytics

Cloud Endpoints

Support forGCE

Page 23: Building cloud powered android applications

Agenda: June 12th, 2014

Overview: Android Studio and Google Cloud Endpoints

Demo: adding a Cloud backend to an Android app in 15 minutes!

Future directions

1

2

3

4 Questions and answers

Page 24: Building cloud powered android applications

Images by Connie Zhou

Google Cloud Platform

Android Studio

Google Cloud Endpoints

Google App Engine plug-in for Gradle

cloud.google.com

developer.android.com/sdk

cloud.google.com/endpoints

github.com/GoogleCloudPlatform/gradle-appengine-plugin

Useful Links