PrintShare 安卓 打印API
来源:互联网 发布:socket编程 tcp udp 编辑:程序博客网 时间:2024/06/07 17:57
Android Developers
If you an Android developer, you can easily integrate your application with PrinterShare to provide printing capabilities to your users. We use intent mechanism to trigger print jobs on the phone. You can inject the following code into your app at the place where printing is required:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setPackage("com.dynamixsoftware.printershare");
i.setDataAndType(data_uri, data_type);
startActivity(i);
i.setPackage("com.dynamixsoftware.printershare");
i.setDataAndType(data_uri, data_type);
startActivity(i);
Where:
data_uri - Uri of the object to print, such as "file:///sdcard/something.pdf" or "content://something"
data_type - Mime type. The following mime types are supported:
"application/pdf"
"text/html"
"text/plain"
"image/png"
"image/jpeg"
"application/msword" - .doc
"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
"text/html"
"text/plain"
"image/png"
"image/jpeg"
"application/msword" - .doc
"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
Feel free to contact us if you need more information about application integration.
0 0
- PrintShare 安卓 打印API
- 安卓传感器api
- android网页打印,安卓网页打印,h5页面打印,浏览器打印,js打印工具
- 安卓开发api网址
- 安卓SDK API下载
- 安卓蓝牙API(1)
- 安卓蓝牙API(2)
- 安卓蓝牙API(3)
- 安卓蓝牙API(7)
- 介绍安卓API<1>
- 安卓api canvas.drawText()
- 安卓mediaformat api详解
- 安卓e.printStackTrace()打印方法
- 安卓studio打印出日志输出
- Windows API ---打印API
- Android入门(2) 安卓API版本
- API对应的安卓版本
- 百度MP3 安卓API接口
- URAL 1132 Square Root(二次剩余)
- 专为枚举类设计的集合类EnumSet
- 编译型语言和解释型语言
- Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules (web项目不能加载到服务器))
- node-interview-questions
- PrintShare 安卓 打印API
- linux忘记Mysql密码
- python日志的配置文件路径问题
- linux c之hexdump的实现
- selenium 问题
- 浅谈SpringMVC之架构与工作流程
- Maven settings.xml文件配置官方说明
- 背光灯
- vpp 类veth接口实现(连接多vrouter,多vbridge)