DevBytes: Android 4.4 KitKat Printing API

Android Developers · 32K views · 2013 · 7:27

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about printing from Android, as the official walkthrough of the KitKat Printing API.

Recommended by 1 people across 1 different months, 2013 to 2014.

What it is

A short DevBytes episode from the Android Developers channel introducing the Printing API added in Android 4.4 KitKat. It shows how to print bitmaps and HTML or web content to Google Cloud Print connected printers, and lists current limitations such as no window.print() support in WebView.

What people said

Recommends ariets · 2013-11 · Stack Overflow · on “Using the Google Cloud Print API with Android”

Answering the question with a bit of an update. As of October 2013, in 4.4 and the support library, there are built in methods to handle printing. See the following documentation for how to do it properly: PrintHelper [LINK] - The support Library class to help with printing Bitmaps. DevBytes: Android 4.4 Printing API [this video] - An Android Developers video detailing the APIs Printing Content [LINK] - An Android Training guide on how to use these APIs.

Cites Necronet · 2013-12 · Stack Overflow · on “Android - How to print from an Android device?”

You may use cloud printing new API for KitKat that allows Wifi direct printing, or web base printing. There still not much documentation beside [this video] and [LINK]

Cites ianhanniballake · 2014-09 · Stack Overflow · on “On Android, what is the easiest way to print from Chrome browser to a Bluetooth mobile printer?”

The Android Printing API [this video] was added in Android 4.4 (KitKat) and supports printing to Google Cloud Print enabled printers out of the box (along with HP printers via the HP Print Service app [LINK] ) - Chrome for Android has an option for printing the current web page from the overflow menu. If the printer you are using is not supported, then you should urge the manufacturer (or an intrepid developer familiar with Bluetooth development and printer protocols) to create a plugin app and use the android.printservice [LINK] API to add support for the printers.