Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Kapsel Printing to Bluetooth printer error

Hi guys,

I'm trying to print the some data from my Cordova app to a bluetooth printer imZ320 but I get an error.

10-30 12:03:45.875: E/AndroidRuntime(26534): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) 10-30 12:03:45.875: E/AndroidRuntime(26534): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

I've tried to do some debug on the issue and I found that the exception message is:

No Activity found to handle Intent { act=android.intent.action.SEND typ=image/png pkg=com.zebra.android.zebrautilities }

Now let me tell you what I've installed (nothing modified just open source code).

1. Printer app -http://scn.sap.com/docs/DOC-61345

2. Cordova Kapsel plugin - https://github.com/katzer/cordova-plugin-printer/tree/network-printer (I know it said "deprecated" but I need to make something work on my device). By default the plugin from the SCN message send the "object" to the Android print server and creates a PDF file. In my case I need o send it to a real printer, ergo imZ320 and the network-printer.

The intent is created in the function below (found in the print.java file of the plugin):

private Intent getPrintController (String appId) { String intentId = "android.intent.action.SEND";

Other sources that I found that work (but native apps created): https://km.zebra.com/kb/index?page=content&id=WH62 and https://opendatakit.org/downloads/download-category/sensors-and-printers/

I tried to reverse engineer them but with no luck

And here is a related plugin that I found on github to zebra printing, but couldn't make it do anything:https://github.com/mchapper/cordova-plugin-zebra-printer/

Regards,

Marius

Tags:
Not what you were looking for? View more on this topic or Ask a question