DantSu / ESCPOS-ThermalPrinter-Android

Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
MIT License
1.23k stars 375 forks source link

want to change/remove AlertDialog box after print successful #333

Closed ydharia closed 2 years ago

ydharia commented 2 years ago

Hello I am not android developer but in my project, my android developer used this library. As per my android developer, he can't remove/change text and not even remove AlertDialog because he can't change code of the library

can someone help me to solve this issue?

client requirement is to show a custom message after print success and AlertDialog must go away after 2sec.

thanks in advance

DantSu commented 2 years ago

The alert dialog are not in the library, they are in the demo app. They are in the Async class. https://github.com/DantSu/ESCPOS-ThermalPrinter-Android/blob/master/app/src/main/java/com/dantsu/thermalprinter/async/AsyncEscPosPrint.java#L148

Don't copy/paste code of the demo project. Is just demo app, It's not necessarily the best way to implement this library in your application.

Rimondlu commented 2 years ago

Should change a dev

ydharia commented 2 years ago

Should change a dev

he done this task after sending this issue link :)

DantSu commented 2 years ago

So why you don't close this issue ?