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 full-size 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 full-size slide

  3. Mobile Applications need
    Scalable Backends

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  8. Use familiar tools
    Android Studio + Java

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  11. Using Cloud Backends

    View full-size 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 full-size 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 full-size 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 full-size 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 full-size 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 full-size 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 full-size 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 full-size slide

  19. Consuming Backends in an
    Android App

    View full-size slide

  20. 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 full-size slide

  21. Client libraries tailored for your backend

    View full-size slide

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

    View full-size slide

  23. 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 full-size slide

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

    View full-size slide

  25. Android Wear
    Apps and Notifications on your Wrist

    View full-size slide

  26. 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 full-size slide

  27. 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 full-size slide