Android的 - 如何从Android设备打印? [英] Android - How to print from an Android device?
问题描述
我想有一个打印功能在我的Android application.Also,我的应用程序可满足不同的用户,我不希望他们做的任何一台PC配置为same.Also,我不知道是什么类型的打印机,他们可以use.Kindly提供我一些知识,在这方面,或如何实现这一点。
I want to have a print feature in my Android application.Also,my application may cater to varied users and I do not want them to do any pc configurations for the same.Also,I do not know what type of printers they may use.Kindly provide me some knowledge in this regard or how to implement this.
推荐答案
Android SDK中没有打印机阿比尚。我们必须使用第三方的API其中最好的是谷歌云打印。
Android SDK has no Printer Api still. we have to use Third party apis best of them is Google Cloud Print.
您可以简单地传递PDF文件PrintDialogActivity这样......,它会从任何印刷在那里,但在此之前,您的打印机必须与谷歌云服务器进行注册。
You can simply pass pdf file to PrintDialogActivity which in sample..., it will be printed from any where but before that your printer must be registered with Google Cloud Servers.
经过下面的链接
谷歌云打印样品:
<一个href="https://developers.google.com/cloud-print/docs/android">https://developers.google.com/cloud-print/docs/android
如何注册: <一href="http://support.google.com/cloudprint/bin/answer.py?hl=en&answer=1686197&p=mgmt_classic">http://support.google.com/cloudprint/bin/answer.py?hl=en&answer=1686197&p=mgmt_classic
如何工作: <一href="http://www.google.com/cloudprint/learn/howitworks.html">http://www.google.com/cloudprint/learn/howitworks.html
帮助: <一href="http://support.google.com/cloudprint/?hl=en&p=mkt_support_faq">http://support.google.com/cloudprint/?hl=en&p=mkt_support_faq
<一个href="https://developers.google.com/cloud-print/docs/android">https://developers.google.com/cloud-print/docs/android
这篇关于Android的 - 如何从Android设备打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!