0

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.

Joseph K.
  • 784
  • 1
  • 9
  • 19

2 Answers2

3

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.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
0

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.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
motis10
  • 2,484
  • 1
  • 22
  • 46