반응형
PrintManager printManager = (PrintManager) act.getSystemService(Context.PRINT_SERVICE);
PrintDocumentAdapter printAdapter = webview.createPrintDocumentAdapter();
String jobName = "test-1";
printManager.print(jobName, printAdapter, new PrintAttributes.Builder().build());
반응형
'Android Studio' 카테고리의 다른 글
[안드로이드] android URI란? (0) | 2017.05.08 |
---|---|
[안드로이드] android PrintDocumentAdapter란? (0) | 2017.04.27 |
[안드로이드] android PrintHelper란? (0) | 2017.04.26 |
[안드로이드] android Print에대해 (0) | 2017.04.26 |
[안드로이드] android eclipse could not open selected vm debug port (8700) 에러 (0) | 2017.04.24 |