This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Android and Google App Engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Android and Google App Engine" Watch "Android and Google App Engine" New topic

Android and Google App Engine

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689

I'd like to know how to integrate applications written in Android with those developed under Google App Engine (Java). Are there patterns to do that?

Thank you

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41068
What do you mean by "integrate" in this context? Android runs on smartphones and tablet computers - where does GAE fit in?

Ping & DNS - my free Android networking tools app
Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Ulf Dittmer wrote:What do you mean by "integrate" in this context? Android runs on smartphones and tablet computers - where does GAE fit in?

I mean integration in the following sense: let's suppose I write an application that runs under GAE and I want some (or maybe the whole) of the application features to be available when I access it from my smartphone that runs Android. Or I write an Android app and I want to call it from my GAE app.

Hauke Ingmar Schmidt

Joined: Nov 18, 2008
Posts: 433
Google App Engine is a hoster for web applications; Java or Python based, free, somehow limited.

Android is an operating system for mobile devices and a runtime environment for "Java" apps.

How could they integrate? The GAE could be used as storage for central data, e.g. a highscore list. Maybe as an intermediatary server; IIRC GAE supports XMPP. You would just integrate it as you would do with any other web resource. You could write a REST based server or a classic Webservice or some home-grown protocol. Or an XMPP client. I don't think there are any specialities compared to other apps interacting with web apps.

Or you could just write a web app that runs in the Android browser. But then there is no need whatsoever for Android at the device itself ^^.
James Elsey
Ranch Hand

Joined: Dec 21, 2007
Posts: 228

I asked a similar question recently on StackOverflow

What I was looking for is a place to host android applications, but then I realised, if I wanted to host my app for free, why not just put it on the marketplace as a free listing...

If you still need GAE in the scenario, create a java web app that exposes its features via REST, and create an android application to use those REST web services

Kind Regards, James. OCPJP 1.6 || My SCJP / OCJCP Study Notes
Interested in : SCJP, Google App Engine, Stripes, Android;|| My Bite-Size SCJP Study Blog
Don't get me started about those stupid light bulbs.
subject: Android and Google App Engine
Similar Threads
bumper stickers, blackbeltfactory and other user personalizations (jforum day 2011)
Managed Hosting
Consequnces of not using Google App Engine in Eclipse - GWT project
Does Google app engine doesn't support Struts?
[SOLVED] Is the war compression idempotent?