Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Application -> Service communications



Permlink Replies: 1 - Last Post: Jun 17, 2014 7:22 AM Last Post By: Eli M
Maurizio Pandol...

Posts: 2
Registered: 7/6/14
Application -> Service communications
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 13, 2014 10:47 AM
Hi all,

I'm understand that is not possible, or at least is very difficult write an Android service in Delphi XE6.
I've found some examples but in some circumstances they doesn't work correctly.

So I'm writing a background service in java using traditional development system (eclipse), but it will be useful if it is possible exchange data between background servicee and Delphi app.

With Delphi I can write the user interface in a very short time and I can recycle it for iOS, while the background service is written in java (or in objective-c).

Any idea? Samples? Suggestion?

Thank you
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Application -> Service communications
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 17, 2014 7:22 AM   in response to: Maurizio Pandol... in response to: Maurizio Pandol...
The two Delphi services articles:
http://blog.blong.com/2013/11/delphi-and-android-services.html
http://blog.blong.com/2013/11/delphi-and-android-services-part-2.html

Launch an activity (Intent) and get a result:
http://www.blong.com/Articles/DelphiXE6AndroidActivityResult/ActivityResult.htm

Custom classes.dex:
http://www.blong.com/Articles/DelphiXE6AndroidSplashScreen/SplashScreen.htm

Comes with source code for a custom classes.dex:
http://sourceforge.net/projects/dpfdelphiandroid/

As far as a Android SDK based service talking to a Delphi app two ways I can think of are via TCP/UDP and via Intents. Either the service or the app could have a port open only to localhost and the service/app could connect to it and communicate. Or you could use Intents to launch or send data from the service to the app.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02