December 5, 2011

Web Android Application for Delphi DataSnap

I've built a simple Web Android Application based on the jQuery Mobile client connected to a Delphi DataSnap server I already blogged about.

I've built a simple Web Android Application based on the jQuery Mobile client connected to a Delphi DataSnap server I already blogged about.

The application has only a full screen Web browser control, and behaves exactly like the mobile web page. However, you can activate it with the icon (I know, I've been lazy and left iin the default Android application icon!) and shows full screen, that is, without the browser address bar and other browser elements. I've not even published it on the Google Android Market, don't think it is worth for such a simple demo application, but if you have enabled the installation of custom applications on your Android phone, you can get install it simply following the link below: 

http://ajax.marcocantu.com/android/dsnap_jqmobile.apk

As an alternative, download the file and email it to you phone, the phone GMail client let's you install an APK attachment directly. I know it has quirks (user interface updates are not as smooth as in the browser based version), but my goal was simply to demonstrate this is feasible and not too complex.

Now I'lls tart looking for an idea to build a real Android application with this technology (Delphi DataSnap Server, HTML, jQuery Mobile, Android Web Application wrapper)... waiting for FireMonkey to show up on the platform.

Update: Images below

     





 

6 Comments

FireMonkey's Android support is a must! 

 I wish EMBT will put some efforts to bring Android
support to FireMonkey ASAP! Right now, there is no
good RAD for Android development, and this is a big
market to conquer. The first one to do it probably
will "win" lots of developers!
Comment by Carlos [http://blog.firebase.com.br] on December 5, 13:15

Web Android Application for Delphi DataSnap 

Can you share the source code?
Thank you.
Pedro Lopes
Comment by Pedro Lopes [] on December 5, 15:26

Web Android Application for Delphi DataSnap 

Love it! Thanks Marco. Source would be awesome.

Ironic that Delphi is finally opened to the iOS
platform, just as it's shrinking to Android!! 
Comment by Hein di Plessis [http://cde.co.za] on December 6, 13:16

Web Android Application for Delphi DataSnap 

Is there a way to implement pagination in DataSnap /
REST so that the client can request only one "page" of
data at one time using request parameters like ?page=2
or a similar way? (I have found this related question
on Stack Overflow:
http://stackoverflow.com/questions/8441077/how-are-people-handling-pagination-with-datasnap-xe-on-a-web-client)

Comment by Michael Justin [http://www.habarisoft.com/] on December 10, 07:50

Web Android Application for Delphi DataSnap 

Michael, 

  DataSnap/REST has built-in support for pagination at 
the response level, using filters after the ? of the 
URL. This is good if the table or query result has an 
medium size.

  For larger tables, you can use the code I wrote for 
supporting jqGrid, part of my Relax Framework.  

-Marco
Comment by Marco Cantu [http://www.marcocantu.com] on December 10, 15:09

Web Android Application for Delphi DataSnap 

 Hi Marco, 
is there a way to get the source coe for this Demo?
Comment by Remmie on December 16, 22:54


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.