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 ...

Get Learn Android Studio: Build Android Apps Quickly and Effectively 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.