Detailed explanation of the template method pattern:
The actual application of the template method pattern in android: