Android的打印意图 [英] Android Print intent
问题描述
我注意到少数在Android Market中(惠普,爱普生,佳能,柯达,兄弟,三星,利盟等)打印机应用程序允许用户进行网络打印。但我找不到任何通用的意图调用它们。
I noticed handful of printer applications in Android Market (HP, Epson, Canon, Kodak, Brother, Samsung, Lexmark etc) allows user to make LAN printing. But i could not find any generic intent to invoke them.
Intent.ACTION_VIEW
正在开放,可以查看照片/文档在内的许多生产力应用程序的所有应用程序。
Intent.ACTION_VIEW
is opening up all applications which can view the photo/doc including many productivity apps.
看起来像惠普的iPrint应用程序有一些独特的意图字符串,但它不工作的任何其他打印应用程序。
Looks like HP iPrint app has some unique intent string, but its not working for any other print app.
意图printIntent =新的意向书(org.androidprinting.intent.action.SEND)
;
任何线索或解决方法来创建意图时,只调用打印相关的应用程序?
Any clue or workaround to invoke only print related applications when creating an intent ?
推荐答案
有没有内置的方式来查找响应为打印的应用程序。即使你知道的应用程序可以打印到打印机,你不能保证该应用程序将接受传入的意图。如果它的确实的接受传入的意图,你希望它可以接受的意图,打印,然后希望开发文档如何使用意向。
There's no built-in way to find an application that responds to "print". Even if you know the application can print to a printer, you have no guarantee that the application will accept incoming intents. If it does accept incoming intents, you have to hope that it can accept an intent to print, and then hope that the developer documented how to use the intent.
要找到你想要的应用程序,最好的办法是将谷歌吧。
The best way to find the application you want is to Google for it.
这篇关于Android的打印意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!