Server communication that is compatible with Android

22 views
Skip to first unread message

Bantak

unread,
Nov 17, 2011, 5:55:43 PM11/17/11
to Google Web Toolkit
Hi,

I want to develop a application with Android and GWT as frontends and
a application server as backend.
My question is what is the easiest way to communicate with the server
and I want to reuse some of the code for Android (especially the
model).

I probably will use Jetty as a server and I specifically do not want
to use Google AppEngine.

Can I use the RequestFactory (which I think is used to communicate
with AppEngine) on a local server? Does anybody know if I can use it
with Android too?

The Google IO presentation about App Engine Connected Android Support
[1] seems perfect. But I have to run my server on my PC.



[1] http://code.google.com/intl/de-DE/eclipse/docs/appengine_connected_android.html

Thomas Broyer

unread,
Nov 18, 2011, 5:12:25 AM11/18/11
to google-we...@googlegroups.com
Absolutely!

RF is not tied to AppEngine at all (we do use it since its early beginnings, two years ago, as part of GWT 2.1-M1, on "local" Jetty servers). The server-side of RF is "just a servlet".

And there's a "pure JVM" version that can run on Android (use RequestFactorySource instead of GWT.create(), and init with a UrlRequestTransport –or a RequestTransport of your own based on Apache HttpClient– that point to your server)
Reply all
Reply to author
Forward
0 new messages