Summary

In this chapter we have seen that it is not only us who can call our code. The operating system can also call the code contained within the methods we have overridden. By adding the appropriate code into the appropriate overridden lifecycle methods, we can be sure that the right code will be executed at the right time.

What we need to do now is learn how to write some more Java code.

Get Android Programming for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.