Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 22.214.171.124 release ready!
Owner and Founder. Opencart
In this blog we will learn how to integrate EPSON POS Printer (Model starting with TM )with your android application.
Integrating this is not at all difficult, if you follow the steps correctly.
First, download the Epson sdk for android. (You can download the sdk from here).
Now from this package, extract the ePOS2.jar file and paste it in your libs folder.
Add this line in your build.gradle file.
Now all you have to do is make an object of the Printer and set the content that you want to print.
Lets have a look on how to do that.
Please note that in printMyData(), you need to replace the first input with the target i.e you need to set the path of the connection or more specifically the port address of your printer.
You can connect the printer and test it yourself.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Basically it is the target port of the connected printer.
Before you request to print data you need to save the connected printer information with you and then from that information the value of the target filed needs to be passed in this function.
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.cmexpertise.instaorder-hogeXAYNRK-s_ihRSPwlBQ==/base.apk”],nativeLibraryDirectories=[/data/app/com.cmexpertise.instaorder-hogeXAYNRK-s_ihRSPwlBQ==/lib/arm64, /system/lib64, /product/lib64]]] couldn’t find “libepos2.so”
It seems that you have not multidex enabled in your project.
Once you enable the proguard in your project then you will have to do a trick with your code.
In the “jniLibs” directory of your project.
There will be one directory named “armeabi” or some other directory that contains a file named “libepos.so”
When you find this file then you need to take a copy of this file and make five directories under the “jniLibs” directory.
The names of these directories should be exactly :
In each of these directories, paste the “libepos.so” file in each of these directories.
Your final code should look like something like this –> http://i.prntscr.com/3vNb-25ySfKFWgfVWYRGnA.png
Hope this helps you.
If still, you are facing any issue, then please do let me know.
You just need to make sure that your android device and the printer are connected via the usb port .
You will need to make sure that the printer and android device are connected and in sync before giving any print command as explained in the blog above.
Am I correct to say that this TMU220 USB printer will only work with a Window computer that has the epson hardware driver and will not work if I connect it to a network router
When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.