Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print image from wifi printer?

I am working on an app in which there is an option to print the badges. Currently I am using BrotherPrinterSDK but it will restrict the functionality for Brother Printers only.

Can anyone help me with a demo to find a list of nearby wifi printers and print by selecting any one of them?

Moreover Brother Printer SDK is not working properly in the versions above marshmallow. So I want to switch to some other method

like image 407
Kartika Vij Avatar asked Feb 26 '19 06:02

Kartika Vij


People also ask

How do I print an image from my printer?

Right-click the photo you want to print, click Open with, and then click Photos. Right-click the photo, and then click Print. Select your printer from the printer list. Change any print job settings.

Can I print pictures from my phone to my printer?

Print photo You can do this by using the gallery app or navigate your phone's storage using a file manager app. You can also navigate to photos saved on cloud services like Dropbox and Google Drive. Once you have found the photo, open it to make sure it's the correct photo and that you're happy with it.

Can I use my printer to print photos?

No set standard makes a printer-specific to photos. You can, in theory, use almost any home printer to create black-and-white or color prints. Most printer software products include custom settings that will change the resolution of your print job to make them near perfect for photos.


2 Answers

Mopria Alliance is an open system for printing to wi-fi and networked printers. How to Print with Mopria Their driver (which is an app) is Here

In your app, on startup, you can check if Mopria is installed, and send them to the Mopria App, if not.

In your app, add a "Print" menu option or button, and have it open the Mopria Printers tab, which will search for local devices. Your app will likely want permissions to turn on Wi-Fi if it is not on (this doesn't sound like a problem from your description).

I did some testing on this a couple years ago, so I will look for some demo code when I get home.

like image 127
FederOnline Avatar answered Sep 28 '22 19:09

FederOnline


Best option so far is using Google cloud printing

so no need relay on other third party apps, but user must add there printer with his own google id

ref:https://www.google.com/cloudprint/learn/index.html

As mention here https://www.google.com/cloudprint/learn/printers/ they support wide range of printers,

To make it programmatically check https://developers.google.com/cloud-print/docs/android

like image 24
UdayaLakmal Avatar answered Sep 28 '22 20:09

UdayaLakmal