Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Delphi Programming Projects

You're reading from   Delphi Programming Projects Build a range of exciting projects by exploring cross-platform development and microservices

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789130553
Length 248 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
William Duarte William Duarte
Author Profile Icon William Duarte
William Duarte
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Building an Instagram Clone FREE CHAPTER 2. Building a Facebook REST API 3. Cross-Platform Services for Windows, iOS, and Android 4. Design Patterns to Build a Multi-Database System 5. Creating GUI Apps with FireMonkey 6. Implementing Tethering to Create a Remote Control 7. Building Microservices Using the RAD Server 8. Other Books You May Enjoy

Creating Android services

An Android service is a non-UI application that performs tasks in the background.

There are essentially two types of service:

  • Start service: This service is started by an Android application. The service may run in the background indefinitely, even if the application is closed.

  • Bind service: This service only works while it is connected to an Android application. More than one application can connect to the same service.

Let's create an Android Service by performing the following steps:

  1. Create a new Delphi project by going to File | New| Delphi. Notice that we have the Android Service option, as follows:

  1. Select this option. Then, we need to define the service option that we want to create; in our case, we will choose Local Service:

  1. After this process, the project will be loaded into the IDE; in Project Manager (Ctrl + Alt + F11...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime