question

ashwinipatil avatar image
ashwinipatil asked tedjones commented

I wanted printer error to show in our app.How we can get printer errors programatically ?

I wanted printer error to show in our app.How we can get printer errors programatically ? i am using

TextPrintJob
Clover FlexPrint
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tedjones avatar image tedjones commented ·

If you start the print with PrintJobsConnector#print, you can later check the status using #getState, which will give you one of the PrintJobsContract#STATE_* values slope

0 Likes 0 ·

1 Answer

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered Jeffrey Blattman edited

If you initiate the print using PrintJobsConnector#print, you can subsequently query the status using #getState, which will return one of the PrintJobsContract#STATE_* values. There's an example in the clover-android-sdk-examples module, in PrintJobsTestActivity.

Unfortunately we did not expose the content URI so you can't observe it with a ContentObserver.

If you print using PrintJob#print, you won't be able to get the status.


10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community