Integrating EPSON POS (Model TM-*** ) Printer with your android application

Updated 26 October 2021

Save

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.

createMyData()

printMyData()

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.

That’s all
You can connect the printer and test it yourself.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


10 comments

  • Gabriel Savio
    • anchit (Moderator)
  • Darshan Bhatt
    • anchit (Moderator)
  • Zandro Zulueta
    • anchit (Moderator)
      • Zandro Zulueta
  • Zandro Zulueta
  • Sunit
    • anchit (Moderator)
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home