Consider the case where the last print failed, for example due to lack of printing papers. Now, the printer may not do subsequent printing until manual intervention.
In the above case, PrintHand calls onFileOpen(int progress, int finished) function with values 0 for progress and 1 for finished. Neither onError(result: Result?) nor RemoteException is called. None of the printing callbacks are called. What does the onFileOpen() method do? Why is onError() or RemoteException thrown.
Edit: It seems like onFileOpen() is called anyway. And it seems PrinterCallBack'ssendingPage() is called with a progress of 100 but finish() is never called in cases like where printer may have erred out.
What does onFileOpen(int progress, int finished) function do? What do values
0
forprogress
and1
forfinished
mean?Consider the case where the last print failed, for example due to lack of printing papers. Now, the printer may not do subsequent printing until manual intervention.
In the above case,
PrintHand
callsonFileOpen(int progress, int finished)
function with values0
forprogress
and1
forfinished
. NeitheronError(result: Result?)
norRemoteException
is called. None of the printing callbacks are called. What does theonFileOpen()
method do? Why isonError()
orRemoteException
thrown.Edit: It seems like
onFileOpen()
is called anyway. And it seemsPrinterCallBack's
sendingPage()
is called with aprogress
of100
butfinish()
is never called in cases like where printer may have erred out.