2013-01-17 2 views

답변

0

이 당신에게 도움이 될 수 있습니다 :

Intent i = new Intent(Intent.ACTION_VIEW); 
i.setPackage("com.dynamixsoftware.printershare"); 
i.setDataAndType(data_uri, data_type); 
startActivity(i); 

장소 :

data_uri - 인쇄 할 개체의 Uri 같은 "파일 : ///sdcard/something.pdf" 또는 "content : // something"

data_type - MIME 유형. 다음 마임 유형이 지원됩니다

"application/pdf"
"text/html"
"text/plain"
"image/png"
"image/jpeg"
"application/msword" - 덕
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" - .DOCX
"application/vnd.ms-excel" - .XLS
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" - .XLSX
"application/vnd.ms-powerpoint" - .ppt
"application/vnd.openxmlformats-officedocument.presentationml.presentation" - .pptx

관련 문제