Posts

Showing posts with the label Bitmap

Printing HTML from Android via ZPL

Image
My main professional activity is developing an Android app nowadays (and before that it was developing iOS apps) but that’s not a very exciting topic as you can find gazillions of guides on it on the web and most of the time it’s just… normal programming. But every now and then I have to develop something rather obscure, like a server application based on the outdated SOAP protocol (in this year of 2020) , or in this case, printing warehouse/product/shipping barcode labels from an Android app. Printing is so easy on Android! … Right? When I first looked into how to support printing from my app, considering that we want our customers to be able to define their own label designs, I thought hey, why not just let people import HTML files into the app, then use Android’s WebView to print it. Super easy to implement, super easy to design labels. I defined a bunch of special placeholder values that one can insert in the HTML (like for product code, product name, etc.), which the a...