O'Reilly logo

Delphi Cookbook - Second Edition by Daniele Teti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Android SDK Java classes

In this section, we'll talk about the mechanisms that the compiler offers to import classes from the Android SDK and NDK. This is not a standard recipe but is more of a show-case showing the possibilities offered by the Delphi compiler and the process needed to fully use them when dealing with OS built-in libraries.

Getting ready

What we will do is import a well-known Android class used everywhere in the Android ecosystem: the Toast. As the Android documentation says:

"A toast provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive."

Toasts are used to inform users about something in an unobtrusive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required