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
AU$14.99 AU$50.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (6 Ratings)
eBook Feb 2024 424 pages 2nd Edition
eBook
AU$14.99 AU$50.99
Paperback
AU$63.99
Subscription
Free Trial
Renews at AU$24.99p/m
Arrow left icon
Profile Icon Marco Cantù Profile Icon Paweł Głowacki
Arrow right icon
AU$14.99 AU$50.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (6 Ratings)
eBook Feb 2024 424 pages 2nd Edition
eBook
AU$14.99 AU$50.99
Paperback
AU$63.99
Subscription
Free Trial
Renews at AU$24.99p/m
eBook
AU$14.99 AU$50.99
Paperback
AU$63.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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 : 9781805125181
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.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
AU$249.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 AU$5 each
Feature tick icon Exclusive print discounts
AU$349.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 AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 187.97
Expert Delphi
AU$63.99
Delphi High Performance
AU$55.99
Hands-On Design Patterns with Delphi
AU$67.99
Total AU$ 187.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

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.