Phonegap - Printing bluetooth - java

I have the following problem:
I have a MZ320 printer Zebra works by bluetooth, but application is under develop phonegap.
I found this plugin (https://github.com/EionRobb/phonegap-print-plugins), but do not know how to implement it (and install).
I am a neophyte at this, please help.
My English sucks, sorry

I pushed on Github a simple cordova/phonegap plugin to send ZPL data to printer. Use it is very simple. Visit project page for more infos.

I am not familiar with the plugin you referenced. I can suggest two ways: (1) Embed Zebra SDK in your app and use it to implement printer discovery, connection and printing to MZ320. (2) Use centvia app to handle printer discovery, connection, and communications and invoke it from your app to send your print data to the MZ320.

Related

Implementing Clarifai API

I need some help with connecting hte Clarifai API into my android app. It's for a uni project where we tests different image recognition softwares. All it needs to do is take a picture on the phone and then run recognition on the pituces (which will be buildings).
I have no idea how to do this which is why i'm throwing this hail mary in the hope that someone would help me. I've put what i have in a drive here: https://drive.google.com/drive/folders/1LH79C0JtpBBpAMdKqNjKfYfj3KTvLgAh?usp=sharing
How can I solve this?
To use the Clarifai API on Android, you should use the Clarifai API Java client. Alternatively, if you wish not to install the library, you can do REST and execute HTTP requests directly using JSON. See the developer's guide for examples.
Note: There's also an Android SDK in works, which is beta at the time of this writing. See here on how to join the beta program.

Chat in local area network in android

I am trying to building a LAN messenger application in android.
I searching on internet for reference project but while reading their code i am not able to understand what actually going on.
Can anyone help me or point me to some other good resources that can help me in my project will be great.
It is enough for me if some one told me key points(what are the things required for this kind of project) and just give me little push so that i can start.
An idea would be to use the open source Alljoyn framework to exchange messages on the LAN. There is also a chat example that you can download, run and examine.
More info here:
https://allseenalliance.org/framework/documentation/develop/run-sample-apps/chat

Run a program and have it output to JPanel/JFrame

I would like to know if it is possible to run a program (ie Google Chrome, Skype etc) and have it output onto my JPanel/JFrame (so I can have Google Chrome inside my Application). And if so, how to do it.
it´s possible if the applications have an java api (an interface for you the developer) google chrome you could open without an api just as a normal browser and go to a targeted website for example :)
just do a google search i found on the first google site some java apis for skype for example
this one https://github.com/taksan/skype-java-api
and use them
i hope i could help you :)

Zebra QLn320 Link-OS USB communications error

-Hi
I'm using the Zebra Link-OS SDK to play around with a QLn-320 mobile printer. I have not altered any of the code. The printer is able to communicate through a network but not via USB. It is using the ZDesigner QLn320 driver on a USB port. I know the problem isn't the USB because I am able to perform SGD commands via Zebra Toolbox as well as print documents through notepad. The sample code should print out a 60 byte sample logo, instead the application returns "Communications error" in the form of a red label. It doesn't even seem to read anything from the printer as I don't get anything returned by doing a SGD command. It seems to work about 1% of the time and other times it shows the blinking folder icon but nothing happens. I've tried all the firmwares for the printer listed on Zebra's website including the latest one. I've tried deleting the project, re-importing it, cleaning it, and even using NetBeans, but nothing seems to work. The bug seems to be in the SDK.
Any ideas?
Thanks!
Verify that you are running JRE v1.6 or above.
Try doing a factory default on the printer.
You can do this by sending to the printer the following SGD command:
! U1 do "device.restore_defaults" "all"
Then try printing from the app via USB.

how to print an image using wifi/Bluetooth connection in android

Actually I have a problem that I have to print an image or text using android app using Wifi/Bluetooth connection.
But i am not found any resource for such type of printing.
I see the app printshare. i have to do such like that.
If some one have any solution then please help me
Some Bluetooth printers like Woosim has its own library and sample for Android. Refer to this link. I have used it for my project and was useful.

Categories