Build your mobile app with Google Cloud Platform

Build your mobile app with Google Cloud Platform


[MUSIC PLAYING] Hi, I’m Laura, from Google. Did you know that you can use
the Google Cloud Platform to build your own mobile backend on
Google’s infrastructure in five minutes? Let me show you how. In this tutorial, we’ll be
building an app that allows a user to shop smart by getting
information on products she’s looking for at the store
she’s in, as well as find stores nearby. We’ll be using some custom code
to wire a basic Android app front end with an App Engine
Cloud backend using Google Cloud Endpoints, so the
phone can determine customer location, and the app can locate
nearby stores and allow the customer to get relevant
offers and recommendations. Let’s get started. I’ve already installed and
configured my IDE with all the right tools and SDKs. First, we’re going to create
the project for the Android client application, and start
building the app. We’ll create an entity class to
define the data structure, generate Cloud Endpoint classes
to give us the backend infrastructure and APIs, and
then generate a related client library to make calling
the server APIs from our mobile app easy. In our Eclipse project, let’s
create a new class and name it check in. These classes allow for
communication between the client and the backend. Click to generate the Cloud
Endpoint class. You can see now that the check
in endpoint.java file is generated in our Apps backend. To generate the related client
library, let’s open the package explorer and
our project. In a few clicks, we generate
the check in endpoint client library. Now that we’ve created the
communication mechanism, we need to add more logic to the
mobile client app to talk to the entity and Cloud
Endpoint classes. Once we do this, the
app will be able to call back to the server. For our app, this means we’ll
be able to retrieve store information contained in
the backend data store. Let’s create a new entity
class in our app. This will represent places– such as stores– near the customer’s current
location in real time. Let’s create that new class
and name it Place. We’ll navigate to the package
explorer and generate a Cloud Endpoint class. Then, we’ll also generate
another Cloud Endpoint client library. Now that we’ve told the app
how to understand store addresses, let’s modify the
client to actually obtain information from the backend
and display it in our app. What I’m doing is expanding the
MainActivity.java section, where our front end code is
located, and adding in more code, which includes the global
results list variable. This contains the information
about the store locations obtained from the backend. And now we’ve got the app
infrastructure in place between the client and the
mobile backend using Google Cloud Endpoints. We just did a lot. We created a bunch of objects
and classes, built the infrastructure, wired up the
Android app to call back to the server, and got the app to
display a list of stores. Next, let’s add logic that
allows the customer to perform the actual tasks of checking
in to a place and obtaining information about the
sales and offers. First, we need to create the
client-user interface so users can access the information,
then we can add offers and recommendations logic to the
backend and to the client. Let’s modify a few files to
improve the interface. We replace TextView with
ListView, which contains the code to list nearby places. We add the
placesListClickListener event handler, which helps the client
understand user clicks, and lets it know when to
activate the logic that performs the check in tasks. Finally, in the onPostExecute
method, we create a list adapter to better display the
information with icons. Let’s now add a few things to
the MainActivity.java file to improve the interface
even more. We add activity_main.xml, which
defines the UI layout for buttons and places. We add place_item.xml, which
contains information about display format and position. And finally, we add strings.xml,
which contains pre-defined strings to display
when the user might get relevant offers or
recommendations. Now that we’ve created the
client-user interface, we need to add classes that allow the
app to obtain information about offers available and
shopping recommendations for each store. We can add the Offer.java
entity class and the Recommendation.java
entity class– one for gathering offers, and
one for gathering shopping recommendations. In the same way we added the
CheckIn.java class, we’re going to create our related
OfferEndpoint.java class and RecommendationsEndpoint.java
class. Again, this creates the related
client libraries automatically. Finally, we’re going to add
the logic to the client so that the customer can actually
see offers and shopping recommendations displayed. We modify MainActivity.java
to add the placesListClickListener event
handler, so that when a customer clicks on an item in
the list of nearby places, it’ll provide offers and
recommendations. We’re done with all
the coding. Let’s deploy an instance
to see our app live. Check it out. In five minutes, we were able to
control our Android app by writing custom code to wire
the app to Google Cloud Endpoints, enhancing the
user experience, and saving us time. Now, you should go download the
code and the tutorial, and give it a shot doing
it on your own. [MUSIC PLAYING]

100 comments

  • I'm having trouble understanding why visual editors such as netbeans were abandoned. UI development for Swing, motif, awt and other toolkits were trivial. Then *poof* – we're hand-jamming an xml file and referring to it as "ui code".

    If you're reading this, check out Netbeans and take a pass at a Swing application. You'll then share my frustration – or maybe not, since it's not likely we'll return to fast UI dev.

  • Am I the only one who has no idea what shes talking about? Why the 136 thumbs up? She talks to fast and every other word, I never heard of before. I want drag and drop, please. My degree is in drag and drop applications.

  • so I guess this is not for you. Google Cloud Platform is a tool for Developers, not drag 'n droppers 🙂

  • You are more to welcome to join an engineering school, and then you see how many pretty eng-girls are studying there, to become "someone" in their live 😉 Not such a BS …

  • I have developed endpoints with python and wanted a jump start on java. This video was such a waste of time. I guess the goal of this video to show how "quickly" this can be done rather than teaching people to create endpoints. Sure you will do everything in 5min when your classes files are pre written. Thumbs down.

  • she's obviously just reading from a teleprompter

  • Finally, someone that can speak at a pace that keeps me engaged. Keep up the good work.

  • can we know the whole procedure in a document please so that we can refer that step by step

  • Waaaaaaaaaaaaaaaaa?

  • I have a financial calculator in excel.  How would I convert it to an android application

  • Diego Leon Ramirez Bedoya

    I've been doing in the example that suggests Google and I could make it work the GCM in the emulator, but when I try to put it to work on my tablet I export the apk file to the GCM server connects but does not seem to recognize my tablet, but the emulator works well, someone can help me

  • it was the worst tutorial I've ever seen. simply I understood nothing. thank you google.

  • Wait what

  • This looks more current: https://cloud.google.com/developers/articles/mobile-backend-starter

  • i need something like visual basic but for  android or windows phone…….look my home  made javascript game ide at my canal  hi

  • What was that about putting my package in the back end?

  • You read the teleprompter very well

  • Url Not working at 5.10

  • This is just absurd. No passion whatsover. Please get a proper developer to explain this.

  • PATHETIC. Google you're slipping badly with horrid tutorials like this.

  • Thank you very much for this introduction. 
    I was able to find tutorial source code from github, https://github.com/GoogleCloudPlatform/solutions-mobile-shopping-assistant-android-client, as a good starting point. 
    And also installed Google plug-in for my Eclipse (Juno), https://developers.google.com/eclipse/docs/install-eclipse-4.2
    Also noticed that I needed to updated [Extras] using Android SDK Manager.
    It took me more than 30 minutes to prepare necessary working environment, very educational. 
    I like this video!

  • Sorry, but this tutorial was absolutely terrible. Nothing was explained clearly. Who could honestly say they understand it better after watching this!?

  • Putra Danan Joyo

    got auto focused on the blue thing, not the saying…

  • Gustavo Inzunza

    Ok, there are 5 minutes, but this isn't clear if you want to learn how to put information in your database in the cloud and print it in your app. Google, your explanations about your APIS are disappointing me :/

  • בן ליבוביץ

    You can't even run an application like that since no business logic was described in the JDBC server.

  • Jedi Code Master

    Terrible tutorial. Should have used the "Bake a Cake" model. Tell me what tools I need to have in place and downloaded. To much is assumed here. Not everyone uses Eclipse. Although I think it is the best for organization of a project.

  • Azim Ahmadzadeh

    First: I don't know why this has anything to do with being a girl. This is just a bad tutorial.
    Second: It is not only about this video tutorial. Google tutorials sock. I put almost 2 days to follow the text version of this tutorial [link bellow] and after all vague explanations and me being passed from one link to another, that drove me crazy, eventually, here I am with a working application (Mobile Shopping Assistant) but did it help me to understand how I can start my own application? Of course not! The given application is far more complicated than an example that you use to teach something to someone. And exactly the moment that you want to see how data were put on cloud or where those methods get there, the tutorial is finished!!!
    [https://cloud.google.com/solutions/mobile/how-to-build-mobile-app-with-app-engine-backend-tutorial/]

  • If only at was free, I would make an app with google cloud included as standard.

  • I consider myself IT savvy but after watching this i was like… wtf lol I am going to look for something easier to follow

  • OK!! very clear !! viva apps with google cloud

  • Very informative video, thank you so much!

    Not srs. Literally the worst POS video i've ever seen.

  • Said a whole lot but said nothing. Complete waist of time.

  • como funciona gooogle developer

  • Luis Pérez Camacho

    This is a technical introductory video competently presented by a good speaker. Everything else is irrelevant. If you feel that you need to comment about the presenter gender or look, please, consider getting psychological advice.

  • Camper Master App

    I was a newbie ! not know if this course will help me or not ! I want just to tell you .. just follow that guy and you will make a great app!
    to encourage you, I made this one :
    https://play.google.com/store/apps/details?id=com.campermasterapp.tankinwars
    Yes ! it takes time ! but it's super easy !

    I encourage you ! so please encourage me by adding a review with 5 stars 🙂
    If you made app too ! and you publish it ! I'm here to encourage you too ..
    Hope that you made a great apps

  • nice 😀

  • okey thanks 😶

  • ooooooooooooooo

  • Google really knows how to make you click ;P

  • Bahtiyar Özdere

    I can copy paster faster xD

  • Lovely brown eyes n brown hair … what a distraction … hmm

  • which are most the popular cloud components for android/ios apps

  • #Kenedy Miranda Me too LOL @Wothus Hackx

  • dear google I am not getting any way to subscribe any account here in YouTube. please help me out.

  • She is just reading this really SUCKS google.

  • Kolitha Ekanayaka

    I see lots of people keep on speaking about Devomobiron Secrets (just google search it). But Im uncertain if it is good. Have you ever tried this popular make money iphone & android apps creation step by step?

  • haha, nothing Ive learned, but she probably needs to be seen here, why not?

  • Where are the files for download to try it out.

  • confusing

  • agggghh.. I do not know if it is her voice or it is just confusing. If you really want to lay out the message be more specific and please change the speaker. I do not want to see a beautiful model I want someone who can explain this process.

  • Sara Bareilles developer version!

  • Any body explain me what did she explained???? 😇😇

  • 😉😇😥😇😇😁😁😁

  • I didn't understand anything! Please make new video. Nothing explained in this video

  • I thought it was only me not understanding anything until I scroll down

  • Hai long. Thank you

  • Nika Otiashvili

    The comments section is cancer. Don't scroll down, you have been warned.

  • Alexandre Carneiro

    Hello people. My 3 cents…
    1- She's young, beautiful and she speaks our language, so… A+, she did her part well, 135k views…
    2- It's not a tutorial, is more of a "Did you know that you can…?" kind of thing…
    3- A word to the wise is enough…

  • As bad as this was, it's not her fault. She's just reading a bunch of words! I'm a little disappointed in Google though! I wasn't expecting to get much out of a 5 minute video, but I got literally nothing from all that 🙂

  • I think this is a bit too high for me…I am just 11 years old

  • IMmoreRANDOMthanYOU

    Chicken?

  • KHẢI MR NGUYỄN DUY HELLO VIDEO CASSETTE INTRO

    Hello Good Luck Happy Happiness

  • Thats why I love wix, they let all this kind of complicated things at their end

  • George Bush !! Sorry people, I could not help myself!! Lol!! ☻

  • Can I get a pdf of this tutorial plz….

  • I think i am going to take a nice 5 min walk down the store and shop there.

  • Im lost thank you now i hate programming

  • Google developers had booth babe explain super fast as they are moving to their next thing.

  • What the hell is going on

  • Is this in English??

  • the tutorial concludes nothing except seeing a beautiful girl

  • Siva Paranitharan

    A Good try, but when you impart the knowledge assume the leaner is the starter. and kindly plan it well to state the information. Good Luck

  • Did you know that every new technology takes time to learn, and read, and practice in order to be productive?

  • goasfaras youcansee

    Pizdec ты умная!

  • http://www.createmyfreeapp.com/ Free business mobile app creator lets you design and publish android & iOS apps on popular app stores Our app builder provide a platform where you can create free app for iPhone, Amazon & Android for all kind of business
    #Bussiness apps for mobile,#mobile #apps for

  • I'm distracted on her beauty, I love her!!!

  • I can listen to her all day.

  • MBMF Foundation

    thanks for your knowledge, God bless

  • This is really a bad tutorial… No information is conveyed..

  • its amazing for me sir ….nice video for us thx

    we also have this services #GSuiteGoogleEmailHosting

  • Luis Mauricio Ortiz Villegas

    What is her name?

  • Unable to understand the accent. The voice is not clear. Can't understand the words she's speaking in English. I wish she was slow in talking, She's too fast that makes the video useless for people who are new to technical things.

  • Extremely poor video. The quality is very,vary bad. Google must improve their standard.

  • sweetha sweetha sri

    Google cloud program teaching next week

  • I recommend lastest version if you have a problem need a rule for firewall.Link for Setup, Already patched and working try https://yadi.sk/d/Daqz2DY43KF6cG

  • Nice! I will be happy to follow and learn from you. (=

    By the way, is it possible if i can have your advice in this open source android app I have posted below? I am still a beginner and many things to learn. I hope to get more feedback to improve it!…

    www . bit. ly/2SJ8b7g

    So sorry about the url having spaces in between because Youtube don't allow me to place url or anything related to Google Play url.. they are somehow hidden by Youtube 🙁 As such this is a shortened url to avoid this issue. Will appreciate if you could remove the spaces to access this app from google play store.

    greatly appreciate !

  • Thanks for sharing such a piece of interesting information. I am sure people over the network will love and enjoy it like I did.

  • Way to go man! It is something i'm looking towards! App is always a good things to discuss.

    Anyway, is it ok if i can get your advice on these android app I have posted below? I am still a beginner and hope to learn from you. Your feedback is greatly appreciated!…

    You may search ' pub:Path Ahead ' in Google Play (P & A are case sensitive).

    thanks and all-the-best !!

  • 2 hard

  • Thanks google

  • Chandrakant Surwase

    Nice video and great explanation.

  • please can you do the same for flutter project

  • please can you do the same for flutter project

  • divertechnology

    nice demo. nice teacher. Those who complain, is a free explanation video. If you don't understand, walk and pay for a course.

  • LOL, good God, I hate Google 😐

  • NAVEEN KUMAR SINGH

    Hey can you plz help how to make a software to create math question paper

  • monstercolorfun co

    lols because 2010 humans have about 2000 times less concentrated eye contact and still eyes than 1970 humans because they spend 10 hours a day on videos 😀

Leave a Reply

Your email address will not be published. Required fields are marked *