7.2.8. Android 4.4 Printing and the Android Support Library’s PrintHelper Class

Android 4.4 now includes a printing framework. In this app, we use class PrintHelper (Section 7.6) to print the current drawing. Class PrintHelper provides a user interface for selecting a printer, has a method for determining whether a given device supports printing and provides a method for printing a Bitmap. PrintHelper is part of the Android Support Library—a set of libraries that are commonly used to provide new Android features for use in older Android versions. The libraries also include additional convenience features, like class PrintHelper, that support specific Android versions.

Get Android™ How to Program, Second Edition 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.