Activities can contain Fragments--self-contained units that contain views and have a lifecycle of their own. However, the lifecycle of a Fragment is bound to the Activity that contains it, so they are also tightly related.
The lifecycle can be seen in the following figure:
We can see that this is very similar to the lifecycle of an Activity, but there are a few new methods, such as the following:
It is beyond the scope ...