Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Expert Delphi
Expert Delphi

Expert Delphi: Robust and fast cross-platform application development , Second Edition

Arrow left icon
Profile Icon Marco Cantù Profile Icon Paweł Głowacki
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (6 Ratings)
Paperback Feb 2024 424 pages 2nd Edition
eBook
$9.99 $36.99
Paperback
$45.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Marco Cantù Profile Icon Paweł Głowacki
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (6 Ratings)
Paperback Feb 2024 424 pages 2nd Edition
eBook
$9.99 $36.99
Paperback
$45.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $36.99
Paperback
$45.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Expert Delphi

Fasten Your Seat Belts

The key benefit of Delphi in mobile development is that you can design your app once and you can natively compile it for both Android and iOS from the same source code. This chapter is exactly about this capability. We are going to install Delphi, create a simple one-button “Hello World” app, and then run the same app on an Android phone and an iOS device.

The integrated development environment (IDE) is where the programmer spends most of their time. Learning best practices of using the IDE will pay off in the future and will increase your developer productivity. Before building apps, you need to feel comfortable working in the Delphi IDE.

The objective of this chapter is to help you install the Delphi IDE, learn basic IDE functionality, and prepare it for mobile development.

In this chapter, we will cover the following topics:

  • Delphi installation
  • Riding the IDE
  • Deploying to mobile devices

Delphi installation

Delphi is a Windows program, so you need to have a computer with a proper version of Windows installed and enough free space on your hard drive. You may want to install Delphi on a physical computer or a Windows virtual machine image using one of the available virtualization solutions, such as VMWare. In this case, you can also use a Mac computer with a Windows virtual machine. Installing it on a virtual machine has some advantages in cross-platform development. To create iOS apps, you will need to have access to a Mac computer anyway. This could be another computer available on the local network or the same physical machine configured with a virtual machine to run the IDE. Whether you choose to install Delphi on a physical or virtual Windows machine, the installation process is the same.

Delphi is implemented as a native Windows 32-bit executable, but it is recommended to install it on 64-bit versions of Windows 11, or a recent 64-bit version of Windows 10.

...

Riding the IDE

In a nutshell, Delphi is a program for making other programs. The program responsible for generating executable files from the source code is a compiler. It is typically implemented as a command-line application, but it can also be invoked directly from the IDE. When executing the compiler as a command-line application, you can pass to it command-line parameters. As depicted in Figure 1.6, compilers take different command-line parameters, including the location of source code files necessary to generate the resulting binary file:

Figure 1.6: A simplified compiler architecture

Figure 1.6: A simplified compiler architecture

It is possible to write your programs using a text editor such as Notepad and then execute the compiler from the command line, but it is not the most efficient way of creating applications. Most programmers use IDEs to work on apps. The idea of an IDE originates from Delphi’s ancestor – Borland Turbo Pascal, in the 1980s – and it comes from the...

Deploying to mobile devices

Our DelphiHelloWorld project is now ready for deployment to mobile devices. We have already built and run it on Windows. Now, we are going to deploy it to an Android device, and then to iOS.

There is a one-time preparation phase for mobile development that you need to go through after Delphi is installed. We want to get to the point in which you can see your devices as targets inside the Project Manager area.

For Android, all the steps to configure your system to detect your device are described at https://docwiki.embarcadero.com/RADStudio/en/Configuring_Your_System_to_Detect_Your_Android_Device.

Deploying to Android

Deploying apps from Delphi to Android devices is simpler than deploying to iOS. You only need to have an Android device and a USB cable to connect your device to a Windows machine where you have Delphi installed.

The first step is to enable USB debugging on the device. This option can be set in Developer options on your device...

Summary

In this chapter, we installed Delphi and configured it for mobile development, configuring the SDKs for Android and iOS. We also learned about some of the basic functionalities of the IDE.

Now, we are going to change gears and focus on the Object Pascal programming language. This is the programming that’s used by Delphi – the language itself is also known as the Delphi programming language.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand the fundamentals of Delphi for building multi-device applications
  • Build desktop and mobile apps with the help of extensive examples that guide you through each step
  • Apply advanced features, such as parallel programming and multi-tier full-stack solutions, based on web connectivity
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Master Delphi, the most powerful Object Pascal IDE and versatile component library for cross-platform native app development, by harnessing its capabilities for building natively compiled, blazingly fast apps for all major platforms, including Android, iOS, Windows, Mac, and Linux. Expert Delphi begins with a quick overview of Delphi, helping you get acquainted with the IDE and the Object Pascal language. The book then quickly progresses to more advanced concepts, followed by the architecture of applications and the FireMonkey library, guiding you through building server-side services, parallel programming, and database access. Toward the end, you’ll learn how to integrate your app with various web services and deploy them effectively. By the end of this book, you’ll be adept at building powerful, cross-platform, native apps for iOS, Android, Windows, and macOS—all from a single code base.

Who is this book for?

If you’re a Delphi developer exclusively versed in Windows applications and aspire to venture into mobile platforms, this book will pave the way for you to become an expert in this space. It serves as a guide for mobile developers or developers in general, proficient in other programming languages and frameworks, to harness the productivity that Delphi and FireMonkey offer.

What you will learn

  • Configure the Delphi IDE for mobile development, use Object Pascal, and build apps
  • Manage core Delphi technologies, including parallel programming, JSON, XML, and FireMonkey
  • Explore FireMonkey 3D features, UI styles, and mobile OS integration to build powerful apps
  • Extend your apps to desktop using the same source code and set of technologies to expand opportunities
  • Build web services integrate them with your UI for a holistic developer experience
  • Deploy apps to devices and online stores, streamlining distribution and facilitating monetization

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 23, 2024
Length: 424 pages
Edition : 2nd
Language : English
ISBN-13 : 9781805121107
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Feb 23, 2024
Length: 424 pages
Edition : 2nd
Language : English
ISBN-13 : 9781805121107
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 134.97
Expert Delphi
$45.99
Delphi High Performance
$39.99
Hands-On Design Patterns with Delphi
$48.99
Total $ 134.97 Stars icon
Banner background image

Table of Contents

20 Chapters
Part 1: Building Blocks Chevron down icon Chevron up icon
Chapter 1: Fasten Your Seat Belts Chevron down icon Chevron up icon
Chapter 2: Mind Your Language Chevron down icon Chevron up icon
Chapter 3: Packing Up Your Toolbox Chevron down icon Chevron up icon
Chapter 4: Using the Parallel Programming Library Chevron down icon Chevron up icon
Part 2: Going Mobile Chevron down icon Chevron up icon
Chapter 5: Playing with FireMonkey Chevron down icon Chevron up icon
Chapter 6: FireMonkey in 3D Chevron down icon Chevron up icon
Chapter 7: Building User Interfaces with Style Chevron down icon Chevron up icon
Chapter 8: Working with Mobile Operating Systems Chevron down icon Chevron up icon
Chapter 9: Desktop Apps and Mobile Bridges Chevron down icon Chevron up icon
Part 3: From Data to Services Chevron down icon Chevron up icon
Chapter 10: Embedding Databases Chevron down icon Chevron up icon
Chapter 11: Integrating with Web Services Chevron down icon Chevron up icon
Chapter 12: Building Mobile Backends Chevron down icon Chevron up icon
Chapter 13: Easy REST API Publishing with RAD Server Chevron down icon Chevron up icon
Chapter 14: App Deployment Chevron down icon Chevron up icon
Chapter 15: The Road Ahead Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(6 Ratings)
5 star 83.3%
4 star 16.7%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




[LORD]Centillion Feb 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Loving the content 🤝
Amazon Verified review Amazon
Albert Ivanov Apr 08, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a re-edition of an already classic. If you don't have the first edition, get this one (my advice).
Amazon Verified review Amazon
Thomas Forget Apr 14, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Natürlich konnte Marco Cantú nicht alle Themen erschöpfend behandeln, aber es ist nach der Lektüre weiterführend.
Amazon Verified review Amazon
David Keith Apr 10, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Marco did a great job of updating this exhaustive work of which, sadly, the original author is no longer with us. A must have for all Delphi developers!
Amazon Verified review Amazon
Milan V. Apr 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is all about building mobile applications, cross-platform applications, since that is what FireMonkey implies.Delphi allows you to develop applications for the two major mobile platforms: iOS and Android, as well as desktop apps for both Mac and Windows, from the same code base. As well you can build the backend for the mobile apps, offering REST access to your own services.Sounds pretty amazing, doesn't It?The book is for developers who know the foundations of programming and can write code in at least one programming language. According to the Preface, Delphi is not a prerequisite, but in my opinion the reader inexperienced with some form of the Pascal programming language, preferably Delphi, will struggle with some of the more difficult concepts. The main focus of the book is on mobile application development.At the time of this review, I have only thoroughly examined the first 6 chapters of the book. This is not a novel or a romantic comedy; it is a fairly technical discussion of some programming principles and practices that will take the inexperienced reader some practice to fully grasp and effectively implement. It is true, that there are extensive examples available for download to accompany the examples in the text, but in my opinion little is gained by downloading somebody else's code and pushing the Execute button of the IDE. You'll learn a great deal more if you actually code and understand each line of the examples rather than just blindly following point and click instructions.**Part I** of the book, *Building Blocks,* is something of a light-weight presentation of some basic Delphi and Pascal language concepts. In reality, most of it would apply to VCL development as well as FireMonkey. It contains the obligatory "download and installation," the "Hello, World!" app, and a brief look at application deployment to Android and iOS devices. It's not quite as easy as the book claims, depending on your working configuration. I work on a Hyper-V instance of Windows on my workstation. Connecting your Android device to your development instance can be daunting if you don't know the ins and outs of getting the instance to recognize the device. The book moves on to presenting some fairly basic stuff about the Delphi language; it's something of a refresher, although I confess to having an aha moment about helper classes and type aliases that never occurred to be before.Then, on to meatier stuff: Files, XML, and JSON. Given the importance of data transfer in today's environments, I would have liked to see a little more depth in this discussion. What the book presents is accurate, but a little more exploration of use cases and techniques would be a welcome addition to the text.The final chapter of this section briefly examines some asynchronous programming topics at a rather high level. If you're unfamiliar with things like the Parallel Programming Library or synchronization this is a good starting point but you'll probably want to consult other, more advanced, resources when your use case becomes more complex.**Part II** Gets us started with mobile development, and for me a more interesting and useful part of the text. Chapter 5 develops the "Game of Memory" app. It was at this point that I started to become more interested in the book's instructional value, since developing this app involves some unique qualities of FireMonkey such as object parenting, shapes, animations, touch, gestures as well as some engaging use of bitmap images. Besides being fun, it was, for me, instructional because of the new territory it covered.Next we move from 2D to 3D, and things get even more interesting. 3D is not an easy world to conceptualize, so I had to spend some time just wrapping my head around some of the concepts. Consider that fine artists did not begin using perspective in their flat canvas renderings until the 15th century, and it becomes obvious that this is not an immediately obvious way of presenting images. So Chapter 6, **Firemonkey in 3D** really pays homage to a watershed development in the way mankind visualizes reality. (Thank the Italian Renaissance artists for this trend!) The chapter provides some details about technical implementations and then illustrates basic drawing concepts using a couple of simple geometric solids. More complex examples follow eventually finishing up with a discussion of mixing both 2D and 3D technologies on the same form.This is where I must stop dwelling on details and comment solely based on the remaining table of contents, as I have not had the time needed to fully attend to learning what the rest of the book has to offer. But a quick glance at the TOC, and the realization that the first two sections have moved from rather elementary to more advanced concepts, it's reasonable to think that the remaining sections will likewise both inform and educate; they should provide ample opportunity for examples and practice. Those are the kinds of things I'm expecting to see as I move through the remainder of the book. My remaining journey consists of FireMonkey Styles, Mobile Operating Systems and unique mobile requirements and capabilities including app deployment and a fair amount of discussion of data, both embedded and so-called "back-ends" accessed using Internet connectivity. It should be an interesting and productive ride. I'll try to post a lengthier review about what I discover when I make the journey.All of that being said, my present conclusion is that this book will provide a valuable experience to those who read carefully, who work the examples and practice problems independently rather than just downloading the answers from GitHub, and above all those who realize that you will get out this kind of book just as much as you invest in reading and understanding it. All of the cheat sheets and all of the influencers who copy and paste on LinkedIn will not provide what plain diligence, perseverance and this book will provide when it comes to cross-platform development using Delphi and FireMonkey.Enjoy the journey!Note: I received a review copy of this book from the publisher. The review itself is my own opinion and original writing.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.