Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android background service in Delphi XE5

I need to write some service for android, using delphi XE5 (firemonkey). That service need to run in backgroung and periodically read sms inbox, writing it into sqllite DB (sms backup).

I know how to read sms and how to write it to DB, but I have no idea how to make app work in background as service.

Any ideas?

P.S.: Thank you for your answers. P.P.S.: Sorry for my bad english.

like image 428
user3082181 Avatar asked Dec 09 '13 09:12

user3082181


1 Answers

You cannot do that with XE5 alone but you can do it with a little help from Java.

Brian Long has published a two-parter on this topic:

http://blog.blong.com/2013/11/delphi-and-android-services.html

http://blog.blong.com/2013/11/delphi-and-android-services-part-2.html

like image 66
gabr Avatar answered Oct 19 '22 06:10

gabr