Chapter 6
Reminders Lab: Part 2
This chapter covers capturing user input through the use of custom dialog boxes. We also continue to demonstrate the use of adapters and an SQLite database. In this chapter, we complete the lab we began in Chapter 5.
Adding/Removing Reminders
The example in Chapter 5 left the screen empty without any reminders. To see what the app layout would look like with a list of reminders, it’s useful to add some example reminders when the app launches. If you tried to come up with a solution to the challenge from the preceding chapter, compare your code with the changes in Listing 6-1. The code in Listing 6-1 checks whether there is any saved state for the instance, and if there isn’t, it proceeds to set up the example ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access