Working Code Examples for BTLE printers from Android?


I have a ZD421 printer and a Zebra TC26, both of which are supposed to be Link-OS compatible. I have downloaded several Zebra example Android apps and none of them work. Is there a working example of PRINTING to a BTLE printer? I can connect, but the printing doesn't work in any of the example projects I have tried. I'm trying to print ZPL over BlueToothLE to a Link-OS printer, with no luck other than connecting and then failing.

Submitted by SSi1 on May 05, 2022 Permalink

If you just want to test how the printer works with the TC26, you can download the Zebra Printer Setup Utility App from the Google Play. The utility app should be able to discover the ZD421 printer either on Bluetooth or on BTLE.

If you are a developer and want to compile a demo app for the TC26 with the ZD421 printer for BTLE, then you can download and install the Link-OS Multiplatform SDK | Zebra. There is a demo app in the default installation folder: C:\Program Files\Zebra Technologies\link_os_sdk\android_btle\v2.14.5198\demos. This demo app should work for you over the BTLE. Please note, you will have to request the fine location permission in the manifest file and ask the user to give the explicit permission, since the TC26 is on Android 11.


Submitted by on June 28, 2022 Permalink

All this code has trouble building in Android Studio, it is for MUCH OLDER Android. Even when I was finally able to get it to compile and install it says "This app is for an older version of Android and might not work" and it does not work.

Submitted by Matt Dermody on May 18, 2022 Permalink

In my experience I have not been able to get printing to work over BLE. We attempted to send a PDF print job to a BLE Zebra Printer from a TC52 and the BLE connection could not handle the PDF payload. A ZPL based print job might be a different story but I at least wanted to share that I haven't found it possible to print over BLE. A printer with the full Bluetooth stack may be required.