i am searching for a solution to print to an Epson POS Printer from Android devices and any kind of help is needed. So am i right that JavaPOS in this case is the right solution?
I found this example JavaPOS Hello World in Java. So i guess i somehow have to create the printer connection and then use JavaPos to send the specific commands?
Does anybody have any experience in doing that and can give me a little help in starting with this?
Thanks a lot in advance!
I don't believe any printer companies have JavaPOS utilities for Android at this time.
In my experience, it's best to use an API because you get total control over printer behavior without the complex nature of JavaPOS. If you have no experience with JavaPOS, it's definitely easier to use a well-written printer manufacturer's custom API, though you wind up with support for only that manufacturer's printer. It's not necessarily a bad thing, considering supporting one type of printer is much simpler than supporting printers from multiple manufacturers. Of course, that depends on your users' demands and your support model.
I know you mentioned Epson and I believe they have an Android SDK available. An alternative is Star Micronics' SDK for Android printing via USB, ethernet, and bluetooth. I used this extensively and highly recommend it for its ease of use, thoroughness in documentation, and many supported features. You can download it here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
Hsve you tried the epson JAVAPOS SDK?
https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=5355&scat=61&pcat=52
来源:https://stackoverflow.com/questions/7285875/javapos-on-android-devices