Printooth icon indicating copy to clipboard operation
Printooth copied to clipboard

Calling print more than once

Open taq opened this issue 2 years ago • 0 comments

I'm not understanding why I can't call the print method on a separated class without going back to the activity where the printer was discovered. If I click on a button the activity and print a document, wait it to print and then click again, everything works. But if I fill an ArrayList with the Printables and call print twice, it doesn´t works.

After the first call, on the callback/debugger I get something like

D/BluetoothSocket: close() this: android.bluetooth.BluetoothSocket@dd94b14, channel: -1, mSocketIS: null, mSocketOS: nullmSocket: null, mSocketState: INIT
D/BluetoothSocket: close() this: android.bluetooth.BluetoothSocket@dd94b14, channel: -1, mSocketIS: null, mSocketOS: nullmSocket: null, mSocketState: CLOSED
E/AndroidPrinter: socket closed

taq avatar Jul 08 '21 17:07 taq