on 10-30-2015 10:25 AM
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
Hey arius Stoica,
Can u please send me your printing functionality code on git hub . Because I dont know how to implement kapsel printing functionality .
regards,
Kishan Panara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishan,
I don't understand what do you want me to send you. All the info I downloaded is from github.
Regarda,
Marius
Hello Marius Stoica ,
I want to print one label which have some odata. when I click on button one label should be print .
I dont know how to do that coding thats why I am asking you for your code .
Regards,
Kishan Panara
Hi Kishan,,
Like I said, all the code lines I've written are based on the Github info. Everything is there.
Regards,
Marius
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.