You are here

API for printing from Android Applications

Intents using API for printing from Android Applications

URI: "content:", "file:", "http:", "https:" MIME TYPE: "text/plain", "text/html", "text/xml", "image/*", "application/x-android-picture-stream"
content is rendered, queued, and then send to a network printer configured by the user.

The "Send 2 Printer" application hooks into existing applications to enable printing,

but you can also send the following data formats to Send 2 Printer for printing from your own applications:

- HTML content
- Text
- Image
- Canvas draw commands (via serialized Picture)
- Canvas draw commands rendered to a Bitmap

The following post contains sample code to print the above formats and include a sample "Test Print" eclipse project:

More information about the "Send 2 Printer" application: