Taking a photo, applying effects, and sharing it
This recipe will introduce the mobile development world using a simple app that shows you how to take a photo directly from the camera or from the photo library, apply some effects to it, and then share it using one of the installed apps on the device.
Getting ready
This recipe makes extensive use of Delphi actions. Actions are an implementation of the GoF command design pattern and have been an important tool for the Delphi developer since the initial versions of Delphi. You can use them as much as you like. In the mobile era, actions are even more important and useful. Indeed, actions can be used to execute common tasks such as taking a photo with the camera, getting a photo from the library, or sharing some content with other apps. Here's how our app will look:

Figure 8.1: The Photo with Effects app, with buttons on the top; three out of the four buttons are bound to standard actions
How to do it...
Now, we are about to create our first FireMonkey...