Build your mobile app with Google Cloud Platform

Diposting oleh Unknown | 05.22

applicationsinthecloud.blogspot.com  >> Build your mobile app with Google Cloud Platform
this hi I'm far from Google
did you know that you can use the Google cloud platform to build your own mother
back and on Google's infrastructure in five minutes
let me show you how in this tutorial will be building an app that allows a
user to shop smart
like any information on product she's looking for at the store she's an
as well as find stores nearby will be using some custom code to wire a basic
Android app friend
within App Engine cloud back and using Google Cloud endpoints
to the phone can determine customer location and app can locate nearby
stores
and allow the customer to get velvet offers and recommendations let's get
started
ever installed and configured may I D E with all the right tools in st. case
first we're going to create the project for the and replant application
and start building the app will create an any class to define the data
structure
generate cloud endpoint classes to give us the backend infrastructure
APIs and then generate related client library to me calling the server API's
from a black
easy in our Eclipse project let's create a new class
animate checkin these classes allow for communication between the client
and the back and click to generate the cloud and point class
you can see now that the check in and point at java file is generated in our
cops back and
to generate the related client library let's open the package explore
and our project in a few clicks we generate the check in and point client
library
now that we've created a communication mechanism
we need to add more logic to the mobile client app to talk to the entity and
cloud and what classes
once we do this the app will be able to call back to the server
for our ap this means we'll be able to retrieve store information contained in
the back and data store
let's create a new entity class nap this will represent places
such as stores you the customer's current location in real time
let's create a new class animate place well navigate to the Package Explorer
and generate a cloud and bring class 10 also generate another cloud and point
client library
now that we've told the ap: how to understand store addresses
let's modify the client actually obtain information from the back end
and displayed in our ap when I'm doing is expanding the main activity that Java
section
where friend code is located and adding in more code
which includes the global results list variable this contains the information
about the store locations
obtain from the back end and now we've got the app infrastructure in place
between the client and the mobile back and 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
but that logic that allows the customer did for me actual tasks and checking
into a place
and obtaining information about the sales and offers first
we need to create the client user interface a user can access the
information
then we can add offers and recommendations logic to the back end
and to the client let's modify a few files to improve the interface
we are placed XQ with ListView which contains the code Elis nearby places
we had the places list click listener event handler
which helps the client understand user clicks and let you know when to activate
the logic that performs the check and tasks
finally in the on post execute method
we create a list adapter to better display information with icons
let's now add a few things to the main activity that java file
to improve the interface even more we had activity main
XML which defines the UI layout for buttons in place as
we had place I dot dot X amount which contains information about display
format and position
and finally we had strings tax now which contains predefined strings
display when the user may get relevant offers a 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 offered a job entity class
and the recommendation that job entity class one for gathering offers
and one for gathering shopping recommendations
in the same way we added
that Java class we're going to create a related offer endpoint I Java class
and recommendations and point at 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 main activity that job at to add the places list click listener that
Hitler
so that when a customer clicks on an item in the list at nearby places
no provide offers and recommendations we're done with all the coming
let's apply instance to see our ap life
check it out in five minutes we were able to control your Android app by
reading custom code
to wire the apt to Google Cloud and points enhancing the user experience
and singing as time now you go down to the code
and the tutorial and give it a shot doing it on your own
( Build your mobile app with Google Cloud Platform )

Applications in the cloud Build your mobile app with Google Cloud Platform By Applications in the cloud Applications in the cloud Published: 2014-09-22T05:22:00-07:00 By Applications in the cloud: Build your mobile app with Google Cloud Platform Applications in the cloud Published: 2014-09-22T05:22:00-07:00 Build your mobile app with Google Cloud Platform 5 99909 reviewer
Title : Build your mobile app with Google Cloud Platform
Description : applicationsinthecloud.blogspot.com  >> Build your mobile app with Google Cloud Platform this hi I'm far from Google did you know...
Rating : 5 CA California Located at
123 Main St , California , 36.778261 -119.4179324 CA . Phone: 206-555-1234 http://california.com What is the latitude and longitude of the Applications in the cloud ? Answer:
http://schema.org/GeoCoordinates