【发布时间】:2013-10-20 07:09:18
【问题描述】:
我正在开发一个 Android 应用程序,我想通过 Samsung Mobile Print 应用程序打印一个 HTML 页面。我需要这样做的意图参数是什么,即
包名
MIME 类型
操作类型(
ACTION_SEND、ACTION_VIEW等)所需的任何其他参数。
有没有办法找出这些参数?我设法使用 adb shell 找到了包名称,但是当我尝试将 HTML 页面作为包传递时,它会抛出一个 ActivityNotFoundException (No Activity found to handle ACTION_SEND)。
我知道还有其他打印选项,例如 PrinterShare Pro 和 Gooble Cloud Print,但我正在为客户开发此应用程序,因此我必须与 Samsung Mobile Print 应用程序通信。
感谢您的帮助。
【问题讨论】:
标签: android android-intent printing samsung-mobile