Book Image

Delphi Cookbook

By : Daniele Teti
Book Image

Delphi Cookbook

By: Daniele Teti

Overview of this book

Table of Contents (14 chapters)
Delphi Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Sending Android intents


One of the most useful things about the Android development is the dispatching mechanism of intents. The Android developer site (http://developer.android.com/reference/android/content/Intent.html) says:

"An intent is an abstract description of an operation to be performed.

...

An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed."

Intents are widely used in Android, and if you want to fully integrate your Delphi app with the Android OS, you will probably have to deal with intents. Delphi uses intents internally to deal with some fundamental Android services (TShareSheetAction, TTakePhotoFromCameraAction, and so on). In this recipe, we'll see how to directly use intents in our app with the help...