You are here

API for printing from Android Applications

Action: 
com.rcreations.send2printer.print
Input: 
URI: "content:", "file:", "http:", "https:" MIME TYPE: "text/plain", "text/html", "text/xml", "image/*", "application/x-android-picture-stream"
Output: 
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:

http://hit-mob.com/forums/viewtopic.php?f=13&t=66

More information about the "Send 2 Printer" application:

http://hit-mob.com/forums/viewtopic.php?f=13&t=58