Sending an application to background
To send an application to background or to bring to foreground TApaTask class will be used.
Class for Application task. A task is a running application. At any one time, for any given application, there may be zero, one, or more tasks running on a device. A task is identified by its association with the running application's window group. An instance of the TApaTaskList class is used to find and access specific tasks.
Functions defined in this class are:
The good example for these functions in this class will be a Task Manager.
Sends the specified task to the background. The task whose window group is at the next ordinal position is brought up to the foreground. In addition, the new foreground task's top view is activated, if it uses the View architecture.