2017-03-06 75 views

回答

0

我发现PrintManager代码此评论,

Calling this method will bring the print dialog and 
* the system will connect to the provided {@link PrintDocumentAdapter}. If a 
* configuration change occurs that you application does not handle, for example 
* a rotation change, the system will drop the connection to the adapter as the 
* activity has to be recreated and the old adapter may be invalid in this context, 
* hence a new adapter instance is required. As a consequence, if your activity 
* does not handle configuration changes (default behavior), you have to save the 
* state that you were printing and call this method again when your activity 
* is recreated.