App Android ITDevCon2011 disponibile sul Market (ITALIAN)

Android, Delphi XE2, ITDevCon, ITDevCon2011, RAD Studio XE2, bit Time Software No Comments »

Manca solo una settima all’inizio di ITDevCon2011. Per permettere a tutti gli iscritti (e far decidere chi è ancora indeciso) di sfruttare al meglio i due giorni di intensa formazione, abbiamo appena pubblicato l’applicazione ITDevCON2011 sul’Android Market.
Trevete il programma completo della conferenza, i profili degli speaker e informazioni sugli sponsor.
Inoltre, potrete definire i vostri speech preferiti in modo da essere avvisati subito prima dell’inizio dello speech.
Potrete votare e commentare ogni speech. Potete commentare da subito inserendo le vostre aspettative per lo speech o alcune delucidazioni sul contenuto. Il voto invece sarà possibile solo a speech avvenuto.

Dal punto di vista tecnico, questa applicazione Android utilizza un servizio REST scritto con Delphi utilizzando DataSnap e i Mobile DataSnap connectors per Android.
Per chi fosse interessato al “Making”, durante la conferenza potrà assistere allo speech di Salvatore Sparacino che illustrerà i vari step dello sviluppo e le soluzioni tecnologiche adottate.
Per definire il vostro profilo, votare e commentare, dovrete utilizzare il codice fornito al momento dell’iscrizione. Se non siete partecipanti, o ancora non vi è arrivato il codice di accesso, potete utilizzare l’applicazione come “anomymous”. In questo caso non potrete salvare i vostri speech preferiti Né votare o commentare.

Dashboard


La time table

Speaker details

Dettagli dello speaker (in questo screenshot, DavidI)

Il link da dove installare l’applicazione è il seguente:
https://market.android.com/details?id=it.bittime.itdevcon2011

Happy ITDevCon2011

ITDevCon2011 Android App

Android, Delphi XE2, ITDevCon2011, Uncategorized No Comments »

In less that a week, ITDevCon2011 will begin. To allow all members (and to let decide who is still undecided) to take advantage of the two days of intense training, we have just published the application ITDevCON2011 on the Android Market. You’ll find full conference program, speaker profiles and information about the sponsors.
In addition, you can define your favorite speeches in order to be alerted immediately before the start of the speech.

You can vote and comment every speech. You can comment now by entering your expectations for the speech or some clarifications on the content. The vote, however, is allow only after the speech.
From a technical standpoint, this Android application uses a Delphi DataSnap REST service and the DataSnap Mobile Connectors for Android.

For those interested in the “Application Making Of” during the conference may attend the speech of Salvatore Sparacino illustrating the various steps of development and the technological solutions adopted. Very cool! Salvatore will talk about a REAL app, not only a demo!

To define your training profile, add rates and comments, you have to use the code provided at registration. If you’ll not attend, or you have not received your access code, you can use the application as “anomymous.” In this case, you cannot save your favorite speeches or votes or comments.

Dashboard


The time table

Speaker details

Speaker details (here DavidI)

The link to install the application is as follows:
https://market.android.com/details?id=it.bittime.itdevcon2011

Happy ITDevCon2011!

DataSnap Mobile Connectors in RAD Studio XE2

Android, Delphi XE2, Events, Programming, RAD Studio XE2, Uncategorized 1 Comment »

WARNING! I’ve been authorized by EMBARCADERO to write about RAD Studio XE2.

RAD Studio XE2 is full of nice and exciting features. One of the most interesting IMHO is the DataSnap extension called “Mobile Connectors”.

In the past, I’ve talked about connecting and using your datasnap REST service with Android, creating ad-hoc json messages and manually parsing the returned json messages. With RAD Studio XE2 this is no longer needed. If you have a DataSnap REST service, you can automatically generate the proxy connector for the major mobile platforms. Yes, just like you have been doing with Delphi or C++ since Delphi 2010.

DataSnap XE2 version supports 4 mobile platforms:

  • Android (Using Java)
  • BlackBerry (Using Java)
  • Windows Phone (Using C#)
  • iOS 4.2 (Using ObjectiveC)

If you want to enable your DataSnap server for the Mobile Connectors you have to explicitely check the feature in the “New DataSnap Server” wizard.

The generated proxies support all the standard Delphi types and maps them to the native target language. Some of the most used Delphi types (e.g. TStream, TDBXReader and so on) have been rewritten in the target language to allows a greater compatibility and a simpler programming interface. The functionalities of the various Delphi classes are not-one-to-one with the Delphi version, but  similar.

From a remote (or local) machine you can download the generated proxy and all the required files using a tool called “Win32ProxyDownloader.exe” which is in the bin folder of your RAD Studio installation. In my FieldTest version, this tool called without parameters, shows its help.

As usual you should have the RAD Studio bin folder in your PATH environment variable, so you can change your current directory to where you want the proxy and write this command in a commandprompt window:

  1. Win32ProxyDownloader -language java_android -host localhost:8080

The proxy and all the needed files are ready in the current directory.

Mat DeLong wrote a very nice Eclipse plugin to use the proxy downloader directly from Android or BlackBerry development environment. You can find this plugin here.

You know that Android is my preferred mobile platform, don’t you?

So, let’s go with an Android example.

To use the generated java proxy, in an Android client application I can write something like this:

//Create the connection
  1. connection = new DSRESTConnection();
  2. connection.setHost("10.0.0.2");
  3. connection.setPort(8080);
  4. connection.setProtocol("http");
  5. //Create the proxy
  6. proxy = new DSProxy.TServerMethods1(connection);
  7. //Use a simple remote method
  8. int sum = proxy.Sum(1,4));
  9. //Use a complex remote method
  10. TStream inStream = null;
  11. TStream outStream = null;
  12. String s = "abc";
  13. inStream = new TStream(s.getBytes());
  14. outStream = proxy.DoSomethigWithATStream(inStream, sum, "Hello DataSnap Mobile Connectors");
  15. //here I can use the java TStream type

All the custom Delphi types (e.g. TPerson) are mapped on the target platform as TJSONObject. All the TJSONValue hierarchy has been ported, with a very similar interface, to the target platform as a wrapper of the native JSON classes.

So, you can write code as the following (Java on Android):

TJSONObject jobj = new TJSONObject();
  1. jobj.addPairs("firstname", "Daniele");
  2. jobj.addPairs("lastname", "Teti");
  3. jobj.addPairs("age", 31);
  4. jobj.addPairs(new TJSONPair("nickname", new TJSONString("Spiderman")));
  5. if (jobj.has("firstname"))
  6.   doSomethingWithFirstName(jobj.getString("firstname"));
  7. doSomethingWithAge(jobj.getDouble("age").intValue());

All the proxies work in a similar way except for the Windows Phone one. Indeed, the WP proxy is asynchronous because Microsoft does not allow a sinchronous http request in the main thread. All the proxies are thread safe.

The proxies are generated on the fly by a set of specialized writers. The TDSProxyGenerator component is in charge of generate the actual proxy code in the target language/platform using one of the specialized generators.

In the next figure you can see all the available proxy generators. Some of them are there since Delphi XE but all the mobile platforms have been added in XE2.

That’s all for now.

RAD Studio XE2 will be officially presented all over the world during the “RADStudio XE2 World Tour”.

You can find the list of all launch events in the RADStudio XE2 World Tour page.

I’ll be a presenter at 3 launch events in Italy and United Arab Emitates.

These are the events where I’ll be (click to register):

RAD Studio XE2 had a lot of new features. This is really the BEST ever Delphi version since version 1.

I’ll blog about other XE2 features mostly Delphi related (as usual) so stay tuned.

“DataSnap and Android (Part I)” on BlaisePascal

Android, Delphi XE, Magazines 43 Comments »

BLAISE PASCAL MAGAZINE
Issue no.17 is just published.

In this issue there is the first part of my articles about “DataSnap and Android”.

During this series I’ll show how to write a complete TODO application using Delphi DataSnap Server and an Android thin client.

Have a good reading.

AndroidConference in Italy - Call4Papers

Android, ITDevCon2011, Programming 17 Comments »

The Android Conference

Yes! This is a great news! Before the two-days conference dedicated to Delphi, this year there will be the AndroidConference.

The Android Conference

The Android Conference will be a conference focused on Google Android development. Android is one of the most popular OS in the world. Now you can use it for your mobile applications.

And now, the “official” Call4Papers Announce

Dear potential AndroidConference speaker,
I’m building the agenda for the first Android Conference in Italy that will be held in late October in Verona. Dates will be announced ASAP.
The call for papers is officially open right now, so if you want to propose some speeches, I’ll be glad to evaluate them.

For the Call4Paper I need:
• Title (for every talk)
• Abstract (for every talk)
• Difficulty level (for every talk. Difficulty level is a scale from 1 to 3 with the following mean: introduction, intermediate, advanced)
• Speaker’s photo
• Speaker’s profile
I’m looking forward to your proposal. The call4papers ends June 30th, 2011.
Please, send your proposal to this email address.
Proposals will be evaluated and the speakers will be contacted ASAP.
This year topics will be the following:

Topics
- Android Fundamentals
- Android Advanced
- Working with Android Sensors
- Android@Home
- Games
- OpenGL
- Android ADK
- Android Market best practices
- Design UI Pattern
- Optimizing you app for the mobile world
- Developers Tools
- 3rd part libraries
- Android NDK
- The WebView World
- Using WebServices
- SOA and ROA
- HW integration

Target audience
- Software architects
- Software developers
- Project managers
- IT managers
- Trainers
The conference web site is http://www.itdevcon.it (still under construction).
Thanks and hope to see you at AndroidConference 2011.

Tomorrow the webinar: “Developing Application Services using PHP Servers and Android Clients”

Android, Programming, RADPHP, Video 30 Comments »

Developing Application Services with PHP Servers and Android Phone Clients

Developing Application Services with PHP Servers and Android Phone Clients

In this webinar I’ll show how to develop Android application talking with REST PHP WEB Services. After introducing the basic concepts, attendees of this session will be taken through how to REST-enable the server application, before building the client application targeting an Android phone.

Topics covered in this webinar include:

  • Introduction to REST and JSON support in PHP
  • Introduction to Android client development
  • Creating a REST web service with RadPHP
  • Connecting from an Android application to the REST web service

Companion White Paper, Videos and Source Code Visit the RAD Studio in Action – PHP and Android Resource Center for additional information on this topic, including an in-depth technical white paper, example source code and a video series on building applications with PHP and Android.

More info on http://www.embarcadero.com/rad-in-action/php-android

Developing Application Services with PHP Servers and Android Phone Clients

Android, Programming, bit Time Software 24 Comments »

My new white paper about “Developing Application Services with PHP Servers and Android Phone Clients” is on line under the Embarcadero RAD-in-Action initiative.

Developing Application Services with PHP Servers and Android Phone Clients

Developing Application Services with PHP Servers and Android Phone Clients

Are (or will be) available:

  • The White Paper
  • The complete source code from the white paper
  • 2 videos showing a complete (obviously very simple) Android application interfacing with a PHP REST web service (developer with RAD PHP XE).
  • A webinar (9th february)

In bit time we are heavily working with the Android operating system used in conjunction with DataSnap or PHP services.

This RAD-in-Action initiative (sponsored by Embarcadero) should be useful for all who want to start to work with Android and REST web services developerd with (RAD)PHP or Delphi Datasnap.

Back from Brazil (all slides and code from the Brasilian Delphi Conference)

Android, Delphi XE, Embarcadero, Events, bit Time Software 54 Comments »

Last week I returned from Brazil where I had been to speak to the Delphi Conference.
The conference was held in St. Paul who, like many Brazilians will be able to confirm, is not a typical Brazilian city.

The warmth of local people has been exemplary. Andreano Lanusse has organized all in a really valuable way.

Besides the excellent food, I was surprised by the number of Delphi developers found: 550! In addition, over 150 people
have not had time to register and were placed on a waiting list. Fantastic.

After the inevitable David and his keynote, there were four simultaneous tracks during the day.

My talk was translated from English to Portuguese.

As imagined, the argument Android and seem to raise much interest in the Delphi community.

It was very nice to have confirmation in the first person to what is present and the large Brazilian community Delphi.

Here you can find all the slides and in my GoogleCode svn repository you can find all the DEMO code.

If you live in italy or can speak in italian language, you might be interested in the “ITDEVCON MOBILE BOOST” (http://www.itdevcon.it/).

Stay tuned.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in