Android - How to print from an Android device?

I want to have a print function in my android app. In addition, my application can serve a variety of users, and I do not want them to make any PC configuration for them. Also, I don’t know what types of printers they can use. In more detail, provide me some knowledge in this regard or how to implement it.

+6
source share
2 answers

There is no Api printer in the Android SDK. we must use a third-party apis, the best one is Google Cloud Print.

You can simply transfer the pdf file to PrintDialogActivity, which is in the sample ..., it will be printed from anywhere, but before that your printer must be registered with Google cloud servers.

Follow the links below

Google cloud print example:

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

+14
source

Great news!

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

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

+7
source

Source: https://habr.com/ru/post/915180/


All Articles