I wanted printer error to show in our app.How we can get printer errors programatically ? i am using
TextPrintJob
I wanted printer error to show in our app.How we can get printer errors programatically ? i am using
TextPrintJob
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.
5 People are following this question.