Google "Mobile Backend Starter" One-click Deployable Mobile Backend for Android

"Mobile Backend Starter" making it easier to add Google Cloud services to your Android apps. Cloud SQL API now offer a database. App Engine: Datastore Auto IDs switch to Scattered IDs.

Google App Engine's "Mobile Backend Starter", a one-click deployable, complete mobile backend launches today, allows you to reap the benefits of a cloud backend with none of the headaches.

""Mobile Backend Starter" provides a ready-to-deploy, general purpose cloud backend and a general purpose client-side framework for Android to rapidly set up a backend for your app, without needing to write any backend code. It includes a server that stores your data with App Engine and a client library and sample app for Android that make it easy to access that data," informs Google.

"You can also add support for Google Cloud Messaging (GCM) and continuous queries that notify your app of events you are interested in."

Mobile Backend Starter also includes built-in support for Google Authentication for keeping users data secure.

New Google Mobile Backend Starter

Features of Mobile Backend Starter include:

  • "Cloud data storage: Users change devices and increasingly use multiple devices. Store any amount of data per user in the cloud to be accessed from anywhere.
  • Pub/Sub messaging: Send messages from one device, to any or all other devices. You can easily use 1:1 and 1:many messaging as well as broadcasting. This feature is useful for various applications including social apps, forums, chat, gaming, and group collaborations.
  • Push notifications: Data updated on one device is automatically available on all devices with GCM for Android.
  • Continuous queries: Create queries that run continuously on the server, automatically feeding updates to the client. These queries are powered by Prospective Search.
  • Google authentication and authorization: Keep data isolated per user or shared among users.
  • Free to get started, scales effortlessly with your needs: You can start by handling hundreds of users for free, then grow to any scale," explains Google.

Watch this Mobile Backend Starter video of a Google I/O session called "From Nothing to Nirvana in Minutes: Cloud Backend for Your Android Application" that talk how to use Mobile Backend Starter to create a new backend server and integrate it with an Android app via Google Cloud Endpoints and the Google Plugin for Eclipse.

For more information, check out the getting started docs, or download the complete source code of the backend on GitHub.

In addition, Google App Engine 1.8.1 release, will switch the deafult Datastore auto ID policy in production to "scattered IDs" to improve performance.

"You can try out the new behavior in the development application server, where scattered auto IDs are the default. These IDs are large, well-distributed integers, but are guaranteed to be small enough to be completely represented as 64-bit floats so they can be stored as Javascript numbers or JSON. If you still need legacy ids for some entities (e.g. because you want smaller numbers for user-facing ids), we recommend you use the allocateIds() API, which will continue to behave as before. You can also override the default auto id policy by setting the new auto_id_policy option in your app.yaml/appengine-web.xml to legacy, but please note that this option will be deprecated in a future release and will eventually be removed," google explains.

Also, the new "Google Cloud SQL API" now offering database, "making it easier to manage lots of instances programmatically by providing an API for common tasks such as creating and deleting instances, increasing or reducing their size, and taking and restoring backups," informs Google.

Google Cloud SQL lets developers host their MySQL databases on Google Cloud Platform with Google "taking care of replicating the data, backups, updates and other admin overheads."

setup and run the new Google Mobile Backend Starter

Follow these simple steps to set up Mobile Starter Backend: "

  1. First, go to this link, and create a project. Then click deploy.
  2. Click on settings to go to the admin panel for your new backend. Under "Authentication / Authoirzation" select "Open (for development use only)" and save the changes.
  3. Next, download Android client project and open it up in your Android IDE. Locate the file and set the PROJECT_ID to the Project ID you created in the Google Cloud Console.
  4. Now just build and run the Android application and you have a cloud enabled Android application," google explained.