Vibhuti
Vibhuti

Reputation: 704

Android - How to print from an Android device?

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.

Upvotes: 10

Views: 14030

Answers (2)

Andrei Buneyeu
Andrei Buneyeu

Reputation: 6680

Great news!

In Android 4.4 (API level 19) and higher, the framework provides services for printing images and documents directly from Android applications.

https://developer.android.com/training/printing/index.html

Upvotes: 7

Abhi
Abhi

Reputation: 9005

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

Upvotes: 15

Related Questions