林恩衍
林恩衍

Reputation: 11

How to set up printing in android without calling the printManager.print triggering the print_dialog_intent?

I'm developing an android app that requires printing some photos with a printer If Using the traditional technique I'll have to call the printManager.print(), but this also triggers the print dialog like the picture below (Pic of the Print Dialog)

This app is designed for a installation art, and the one and only printer is connected to the phone by both usb and wifi direct method Since the dialog requires user to choose which printer to use on themselves, I feel it largely ruin the user experience, but I have no idea of how to keep track of the connection with the printer without calling this function

Any recommendations?

Upvotes: 0

Views: 218

Answers (1)

You can send the data stream directly to the printer's port. Or use a custom print service with an activity.

Upvotes: 0

Related Questions