Comments on: Android apps connected to Delphi DataSnap Server http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/ Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos Thu, 05 Feb 2015 13:54:28 +0000 hourly 1 https://wordpress.org/?v=6.7.4 By: Tonino JAck http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-101672 Thu, 05 Feb 2015 13:54:28 +0000 http://www.andreanolanusse.com/en/?p=771#comment-101672 Adriano buen día.
estoy incursionando en desarrollos para android con delphi xe6. una aplicación sencilla hecha con datasnap y dbexpress. Desde el móvil tengo conección perfecta con mi base de datos sql server 2008, cuando quiero modificar un registro o actualizar me da el siguiente error:Exception in safecall method
cuando aplico el metodo ClientDataSet – ApplyUpdates. Que puede ser? Gracias

]]>
By: Jorge López http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-35570 Wed, 20 Aug 2014 02:13:20 +0000 http://www.andreanolanusse.com/en/?p=771#comment-35570 Hi! Nice job on this tutorial!
I understood all the guidelines but how can i aproach the access to datasnap server without that proxy libraries? I mean, using tipical url queryng using json as output format?

]]>
By: Clederson http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-22442 Wed, 02 Jul 2014 16:20:59 +0000 http://www.andreanolanusse.com/en/?p=771#comment-22442 você tem essa aula em Português?

]]>
By: João Carlos http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11693 Wed, 12 Jun 2013 14:25:53 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11693 Andreano, gostaria de parabenizá-lo pelo excelente tutorial.
Estou começando a desenvolver em Android agora e já consegui implementar o codigo sem problemas na API 10 (Android 2.3.3), infelizmente não consego em nenhume API lançada após a 10. Já quebrei a cabeça bastante mas não encontro solução. Gostaria de lhe pedir uma ajuda para esse caso. Fico muito grato.

Obrigado

]]>
By: dison http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11597 Sat, 18 May 2013 03:14:45 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11597 Hello Lanusse im getting a error “incorrect type in dbxvalue” if the table has a field of data type integer

when i call in my code
COUNTRIES.add(reader.getValue(“ID”).GetAsInt16());

if i call using
COUNTRIES.add(reader.getValue(“ID”).GetAsString()); i have the same error

How fill my adapter with a field with data type int in my table

Thanks

]]>
By: Sergio Kawahara http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11292 Thu, 08 Nov 2012 12:41:22 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11292 Andreano, primeiramente quero parabeniza-los pelos post, muito util para a comunidade, gostaria de saber como posso fazer para compartilhar a function getConnection() com outras class, sem a precisar refazer a function em cada class, fazendo apenas a chamada, já tentei assim:
ClassConexao Conexao = new ClassConexao();
DSRestConnection conn = Conexao.getConnection();
Mas não funciona, se puder ajudar fico muito grato

Sergio Kawahara

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11263 Wed, 24 Oct 2012 08:23:41 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11263 In reply to giovanni.

Giovanni, because on the second one I return the cursor through the TDBXReader, as the server finish to send the cursor to the client side it will be automatically destroyed by the server.

]]>
By: giovanni http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11260 Mon, 22 Oct 2012 10:05:26 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11260 in the first example InsertCountry ther is Comm.Free,
in the second example GetCountries no. Why ?

Thanks

]]>
By: Remmie Ran http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11252 Thu, 18 Oct 2012 13:51:27 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11252 In reply to Remmie Ran.

got it thanks.

]]>
By: Remmie Ran http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11250 Thu, 18 Oct 2012 09:13:09 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11250 In reply to Andreano Lanusse.

Andreano, I think is the eclipse system on my PC It just will not “talk” with the REST Server for some reason. calling the same address from a web browser works. but not from the Android emulator. I am trying to do the same in RADPHP and having problems with the DBXReader. I do not know how to access it. ??

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11249 Wed, 17 Oct 2012 05:18:04 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11249 In reply to Remmie Ran.

@Remmie I’m not understanding what is the problem, can you please clarify.

]]>
By: Remmie Ran http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-11247 Tue, 16 Oct 2012 10:24:37 +0000 http://www.andreanolanusse.com/en/?p=771#comment-11247 Hi,
I followed your example to connect to datasnap and create an android app but it is not working on the android side. for some reason I does not post back to the table or refresh the data. It does work if i use a web page but not from eclipse. any Ideas?

]]>
By: Anagnostes http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10880 Wed, 02 May 2012 20:04:31 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10880 In reply to Andreano Lanusse.

Finnally got it:

conn.setHost(“192.168.2.5”);
conn.setPort(80);
conn.setUrlPath(“/TestRest.dll”);

Thanks

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10879 Wed, 02 May 2012 19:44:32 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10879 In IIS will be port 80 by default and try to call some server method, just http://192.168.2.5/TestRest.dll won’t do anything

]]>
By: Anagnostes http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10878 Wed, 02 May 2012 19:42:35 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10878 In reply to Andreano Lanusse.

With a dll in an IIS server with the 8080? I thought the port was 80 as HTTP in IIS.

With IP and port 8080 doesn’t work. I compile the dll, put it in a server with other ISAPIs and no way i can’t get a connection in Java.

with http://192.168.2.5/TestRest.dll i get the default DataSnap REST Project webpage.

I don’t know if i’m doing something wrong.

Thank you very much… that’s a record time answer!

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10877 Wed, 02 May 2012 19:26:47 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10877 In reply to Anagnostes.

setHost should be IP or hostname of the machine running the DataSnap Server and port should be 8080, unless you changed the default

]]>
By: Anagnostes http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10876 Wed, 02 May 2012 19:24:22 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10876 What should be the setHost and setPort of the getConnection() funcion when you deploy the WebService as isapi dll?

I get “Host may not be null” all the time.

Thank you

]]>
By: Khan http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10842 Wed, 25 Apr 2012 09:01:33 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10842 Where can I download this sample source code on Delphi and Java.

Thank you.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10806 Sat, 14 Apr 2012 04:02:21 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10806 In reply to statik0.

@Statik0,

You just need to import the WSDL on the Android side, google and you will find a lot of videos.

]]>
By: statik0 http://www.andreanolanusse.com/en/android-apps-connected-to-delphi-datasnap-server/#comment-10795 Wed, 11 Apr 2012 22:21:14 +0000 http://www.andreanolanusse.com/en/?p=771#comment-10795 Hi, I need to develop an Android application that connects to an Delphi application using a web service . Some ideas ?? Help me please !!!

]]>