Chapter 14: Android Dialog Windows
In this chapter, we will look at how to present the user with a pop-up dialog window. We can then put all that we know into the first phase of our first app, Note to Self. We will then explore the latest Android and Java features in this chapter and the next four (up to Chapter 18, Localization), and use our newly acquired knowledge to enhance the Note to Self app at each stage.
Each chapter will also build a selection of smaller apps that are separate from this main app. So, what does this chapter hold in store for you? Well, we will cover the following topics:
- Implementing a simple app with a pop-up dialog box
- Using the
DialogFragment
class to begin the Note to Self app - Adding string resources in our projects instead of hardcoding text in our layouts
- Using Android naming conventions for the first time to make our code more readable
- Implementing more complex dialog boxes to capture input from the user
Let's...