Joseph K.
Joseph K.

Reputation: 774

Send a pdf file to the defined printer

https://developer.android.com/training/printing/custom-docs.html#print-adapter

I found this but it is too complicated I think. I just want to send an existing pdf file to the printer. Is the above way is the only way? I couldn't find anything other that.

Upvotes: 0

Views: 135

Answers (2)

motis10
motis10

Reputation: 2596

I'm not sure what is your goals but, Your options are:

  1. Custom print adapter - Like you saw. You can find easier implementation as CommonsWare wrote.

  2. Google Cloud Printer - An option just if your goal that each of user will print and set the printer itself.

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006554

I found this but it is too complicated I think

I agree. Google doesn't care.

Is the above way is the only way?

AFAIK, yes, though see http://stackoverflow.com/a/20719729/115145 and this for basic implementations.

Upvotes: 3

Related Questions