Now let's take a dump of the dump season activities and see how these data structures change when I
navigate through the UI.
So I have the emulator and I have here opened multiple apps.
So let's say I go to the contacts app.
Now let's take a dump of the dump activities.
So I'm taking just dump this activity activities.
So if you give activities here, you'll get a dump of only the activities.
So if you simply give activity, then that will give you the entire dump of the entire activity manager
service.
So if you need only specific to the activities, then just use this parameter and I'm dumping it to
activity dump dot text.
So I have opened it up in pseudocode.
So now we have the messaging app at the top.
So if we see this structure, you could see at the top we have the display zero and within that we have
this task.
There are multiple tasks, these are different tasks and within the task you can see different activity
records.
So within this task you can see a lot of attributes are there.
So the first one, for example, is command, android, dot messaging.
So this is the package name of this app and the visible state is true.
So if I minimize this and here you can see the visible state of other task as false.
So this app is at the top now.
The messaging app is at the top.
That's why it is visible.
True.
And then we have contacts, gallery, dialer and many other tasks here.
Right.
So now within the task, you could see multiple activity records.
So here in history here you can see there are two activity records within the messaging app.
Let's because I have opened two activities here.
So the first one is the conversation activity and then we have the conversation list activity.
So these two activity records belongs to this task.
And similarly here for the contacts, there is only one activity record which is the people activity.
And then below that there also there is one activity open.
And for the dialer app, again, we have one main activity open here.
But the state of all these are false.
So visible is false for all of these except the top one.
So here the activities are arranged from top to the bottom.
So the one which is visible at the top is at the top and others are at the bottom.
So let's quickly change this.
Let me go to gallery and let's come back.
I'm sorry.
So that's closed.
No, it's not closed.
Okay, let's be here.
Let's open this up and let's play one gallery.
And now let's do the same thing.
Okay.
So now the dump is refreshed.
So now you could see that at the top we have computer Android, Dot Gallery 3D, which is this app,
right.
And in the history there is one activity which is the gallery activity.
And in case of messaging, there is still two activities which we opened earlier.
And here you can see the Gallery 3D activity is visible through now because that is the one which the
user is seeing at the moment and the rest of the apps are false.
And here you can see a lot of other attributes of the task and for the activity records, here are the
activity record related attributes, the package name.
So this package name is the same as what you give in the Android manifest activity example tag.
There are many other attributes as well.