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.


Home Screen App Widgets

App widgets are live elements that the user can add to her home screen. Android ships with a variety of app widgets, such as a music player, and device manufacturers frequently add more. However, developers can add their own — in this chapter, we will see how this is done.

For the purposes of this book, “app widgets” will refer to these items that go on the home screen. Other uses of the term “widget” will be reserved for the UI widgets, subclasses of View, usually found in the android.widget Java package.

Prerequisites

Understanding this chapter requires that you have read the core chapters, particularly the chapters on:

App Widgets and Security

The preview of this section left for Hollywood to appear in a reality TV show.

The Big Picture for a Small App Widget

The preview of this section was the victim of a MITM ('Martian in the middle') attack.

Crafting App Widgets

The preview of this section is en route to Mars.

Another and Another

The preview of this section is out seeking fame and fortune as the Dread Pirate Roberts.

App Widgets: Their Life and Times

The preview of this section was stepped on by Godzilla.

Controlling Your (App Widget’s) Destiny

The preview of this section is [REDACTED].

One Size May Not Fit All

The preview of this section is en route to Mars.

Lockscreen Widgets

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

Preview Images

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

Being a Good Host

The preview of this section is out seeking fame and fortune as the Dread Pirate Roberts.