Summary

We have seen that it is not only us that can call our code. The operating system can also call the code contained within the methods we have overridden. By adding the appropriate code to the various 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. In the next chapter, we will start to focus on Java and, because we have such a good grounding already in Android, we will have no problem practicing and using everything we learn.

Get Android Programming for Beginners - Second Edition 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.