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.


Working with the Clipboard

Being able to copy and paste is something that mobile device users seem to want almost as much as their desktop brethren. Most of the time, we think of this as copying and pasting text, but one could copy and paste other things, such as Uri values pointing to more elaborate forms of content.

In this chapter, we will explore how to work with the modern clipboard APIs. Here, “modern” refers to android.content.ClipboardManager. Android 1.x and 2.x used android.text.ClipboardManager, which still exists in the Android SDK for backwards-compatibility reasons. However, most modern development should use android.content.ClipboardManager.

Prerequisites

Understanding this chapter requires that you have read the core chapters of this book.

Working with the Clipboard

The preview of this section was abducted by space aliens.

ClipData and Drag-and-Drop

The preview of this section is sleeping in.

Monitoring the Clipboard

The preview of this section was eaten by a grue.

The Android 4.3 Clipboard Bug

The preview of this section will not appear here for a while, due to a time machine mishap.