![]() ![]() This capability of Android showcases the benefits of loosely coupled activities and late runtime binding of intents. Even though they were developed in multiple apps. The use of tasks enable independent activities to work together as if they were developed in a single app. For example, in the map from contacts async app, activity one belongs to one app, activity two to a different app and activity three yet to another app. Activities in a task may also belong to different apps. Whereas activity three is defined in a separate app. For example in the image downloader, activity one and activity two both are defined in the same app. Some of these activities in a task may belong to the same app. Likewise the map from contacts async app has multiple activities to prompt the user, select a contact and map the contact's address. For example the image downloader application has multiple activities that prompt the user for an image URL, download the image and display the image. A task is a group of activities the user interacts with when performing a certain job. Now that we know an application can have more than one activity, we can talk about tasks. For example, the download image activity can be reused by other apps that want to download a file. Having multiple apps can also be used to enable systematic reuse. Such as prompting the user or downloading the image respectively. These activities can be used to provide different screens for different app capabilities. A main activity and a download image activity. For example, the image downloader app has two activities. We'll first start by talking about grouping multiple activities into tasks. And you'll learn how the case study apps we developed can be used to demonstrate the task back stack in action. You'll understand how Android manages multiple activities in the task back stack. ![]() After you complete this lesson, you'll know how multiple activities can be grouped together into a task. There are several learning objectives in this lesson. This lesson focuses on how to manage multiple activities and tasks. Welcome to the next lesson in this module on Android activities.
0 Comments
Leave a Reply. |