question

ashwinipatil avatar image
ashwinipatil asked ·

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
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
Jeffrey Blattman avatar image
Jeffrey Blattman answered ·

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.


Share
10 |2000 characters needed characters left characters exceeded

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