The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Advanced Preferences

We saw SharedPreferences and PreferenceFragment earlier in the book. However, we can have more elaborate preference collection options if we wish, such as a full master-detail implementation like the Settings app sports. There are also many other common attributes on the preference XML elements that we might consider taking advantage of, such as allowing us to automatically enable and disable preferences based upon whether some other preference is checked or unchecked.

In this chapter, we will explore some of these additional capabilities in the world of Android preferences.

Prerequisites

Understanding this chapter requires that you have read the core chapters, particularly the one on SharedPreferences.

Introducing PreferenceActivity

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Intents for Headers or Preferences

The preview of this section was lost due to a rupture in the space-time continuum.

Conditional Headers

The preview of this section was lost due to a rupture in the space-time continuum.

Dependent Preferences

The preview of this section was abducted by space aliens.

Nested Screens

The preview of this section is sleeping in.

Listening to Preference Changes

The preview of this section is in the process of being translated from its native Klingon.

Defaults, and Defaults

The preview of this section is en route to Mars.

Listening to Preference Value Changes

The preview of this section took that left turn at Albuquerque.

Dynamic ListPreference Contents

The preview of this section did not survive Thanos's finger snap.

Dealing with External Changes to Preferences

The preview of this section was abducted by space aliens.

Preferences in Device Settings App

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.