Printing files
Stay organized with collections
Save and categorize content based on your preferences.
Android users frequently view content solely on their devices, but there are times when
showing someone a screen is not an adequate way to share information. Being able to print
information from your Android application gives users a way to see a larger version of the
content from your app or share it with another person who is not using your application.
Printing also allows them to create a snapshot of information that does not depend on having a
device, sufficient battery power, or a wireless network connection.
In Android 4.4 (API level 19) and higher, the framework provides services for printing images and
documents directly from Android applications. This training describes how to enable printing in
your application, including printing images, HTML pages and creating custom documents for
printing.
Lessons
-
Printing a photo
- This lesson shows you how to print an image.
-
Printing an HTML document
- This lesson shows you how to print an HTML document.
-
Printing a custom document
- This lesson shows you how you connect to the Android print manager, create a print adapter
and build content for printing.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Printing files\n\nAndroid users frequently view content solely on their devices, but there are times when\nshowing someone a screen is not an adequate way to share information. Being able to print\ninformation from your Android application gives users a way to see a larger version of the\ncontent from your app or share it with another person who is not using your application.\nPrinting also allows them to create a snapshot of information that does not depend on having a\ndevice, sufficient battery power, or a wireless network connection.\n\n\nIn Android 4.4 (API level 19) and higher, the framework provides services for printing images and\ndocuments directly from Android applications. This training describes how to enable printing in\nyour application, including printing images, HTML pages and creating custom documents for\nprinting.\n\nLessons\n-------\n\n\n**[Printing a photo](/training/printing/photos)**\n: This lesson shows you how to print an image.\n\n\n**[Printing an HTML document](/training/printing/html-docs)**\n: This lesson shows you how to print an HTML document.\n\n\n**[Printing a custom document](/training/printing/custom-docs)**\n: This lesson shows you how you connect to the Android print manager, create a print adapter\n and build content for printing."]]