Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cloud Power your Android Apps (Cloud Developer Roadshow 2014)

Cloud Power your Android Apps (Cloud Developer Roadshow 2014)

In this deck we look at how to Cloud enable your Android applications through simple creation of a Cloud Backend. We also show how to extend your apps to support Android Wear. This deck was delivered during the Google Cloud Platform Developer Roadshow events in 2014.

GoogleCloudPlatform

August 21, 2014
Tweet

More Decks by GoogleCloudPlatform

Other Decks in Technology

Transcript

  1. Cloud Power your Android
    Apps: Quick and Easy
    Google Cloud Platform Developer Roadshow - 2014

    View Slide

  2. Agenda
    Mobile applications need scalable back ends
    Using Cloud Backends
    Consuming Backends in an Android App
    Extending your App to your wrist with Android Wear
    1
    2
    3
    4

    View Slide

  3. Mobile Applications need
    Scalable Backends

    View Slide

  4. Cloud
    Backend
    Isolated from outside world 83%
    63%

    View Slide

  5. Make applications more engaging
    Off-device data, multi-device interactions

    View Slide

  6. Want to focus on your code
    Don't worry about load balancer configurations, CDNs, scaling...

    View Slide

  7. Google Cloud
    Endpoints
    Build Powerful Backends with APIs - Easily

    View Slide

  8. Use familiar tools
    Android Studio + Java

    View Slide

  9. Start effortlessly
    Auto-generated, mobile-optimized client libraries for your API

    View Slide

  10. Scale automatically
    Google App Engine’s auto-scaling and high-availability

    View Slide

  11. Using Cloud Backends

    View Slide

  12. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  13. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  14. @Api(name = "myApi", version = "v1")
    public class MyEndpoint {
    /** A simple Endpoint that takes a name and says "Hi" back */
    @ApiMethod(name = "sayHi")
    public MyBean sayHi(String name) {
    MyBean response = new MyBean();
    response.setData("Hi, " + name);
    return response;
    }
    }
    MyEndpoint.java

    View Slide

  15. @Api(name = "myApi", version = "v1")
    public class MyEndpoint {
    /** A simple Endpoint that takes a name and says "Hi" back */
    @ApiMethod(name = "sayHi")
    public MyBean sayHi(String name) {
    MyBean response = new MyBean();
    response.setData("Hi, " + name);
    return response;
    }
    }
    MyEndpoint.java

    View Slide

  16. @Api(name = "myApi", version = "v1")
    public class MyEndpoint {
    /** A simple Endpoint that takes a name and says "Hi" back */
    @ApiMethod(name = "sayHi")
    public MyBean sayHi(String name) {
    MyBean response = new MyBean();
    response.setData("Hi, " + name);
    return response;
    }
    }
    MyEndpoint.java

    View Slide

  17. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  18. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  19. Demo

    View Slide

  20. Consuming Backends in an
    Android App

    View Slide

  21. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  22. Client libraries tailored for your backend

    View Slide

  23. Don't worry about "plumbing"
    Object serialization/deserialization, compression,
    SSL support; client library generation
    Networking, battery life, information security

    View Slide

  24. Scale unlimitedly as your needs grow
    Free to get started, has full power of Google App Engine:
    autoscaling, high-availability, multiple storage options.
    Speed and reliability

    View Slide

  25. Demo

    View Slide

  26. http://developer.android.com/design/media/wear/clear_bold_type.jpg
    Extending your App for
    Wearables

    View Slide

  27. Android Wear
    Apps and Notifications on your Wrist

    View Slide

  28. Mobile Backend Running on
    Google App Engine Instances
    Mobile Backend Running on
    Google App Engine Instances
    Backend running on Google App
    Engine instances
    Client
    libraries
    for your
    backend
    Cloud Endpoints Architecture

    View Slide

  29. Demo

    View Slide

  30. Recap
    Mobile applications need scalable back ends
    Using Cloud Backends
    Consuming Backends in an Android App
    Extending your App to your wrist with Android Wear
    1
    2
    3
    4

    View Slide

  31. End

    View Slide