Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - How to print from an Android device?

Tags:

android

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.

like image 924
Vibhuti Avatar asked May 08 '12 10:05

Vibhuti


1 Answers

Android SDK has no Printer Api still. we have to use Third party apis best of them is Google Cloud Print.

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.

Go through below links

Google cloud print Sample:

https://developers.google.com/cloud-print/docs/android

How to register: http://support.google.com/cloudprint/bin/answer.py?hl=en&answer=1686197&p=mgmt_classic

How it works: http://www.google.com/cloudprint/learn/howitworks.html

Help: http://support.google.com/cloudprint/?hl=en&p=mkt_support_faq

https://developers.google.com/cloud-print/docs/android

like image 195
Abhi Avatar answered Oct 17 '22 15:10

Abhi