Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NFC Print from Android app

I have been doing alot of research today, about whether or not it's possible to implement NFC printing in an Android app. We have a client who has an HP printer with the NFC feature, and want to use that in an app we created earlier, instead of Cloud printing. What we want is, to be able to set some options regarding the print itself, like orientation and scale etc., automatically, so we can just hold our Android device in front of the printer.

Use case:

  1. Press print button in Android app
  2. Create bitmap
  3. Show dialog saying: "Hold phone close to the printers NFC reader"
  4. The printer then prints the bitmap, without further user interaction.

The idea here is, as mentioned above, that we can se some print options in the NFC message.

Have anyone done anything like this before, and is it even possible to use a custom implementation of NFC printing on Android yet?

Another solution would be to use HP's own feature, called EPrint. I have created a test version, where we just create the bitmap and then create an intent to the EPrint application (the user must have the HP EPrint app installed...).

The EPrint app then finds the right printer, by itself, and then the user must set some printing options before pressing "print". It doesnt seem like it's possible to adjust any printer options with the intent (bundle), but maybe it just lacks documentation?

The above implementation is not too bad, because the client doesn't mind having the HP EPrint app installed. But the NFC feature would be more preferable.

Is any of this possible?

like image 903
Teilmann Avatar asked Nov 18 '15 13:11

Teilmann


People also ask

How do I print from my phone using NFC?

Select the content you want to print. If neccessary, change the print option by pressing the . Tag the NFC tag on your mobile device (usually located on the back of the mobile device) over the NFC tag( ) on your printer. Wait few seconds for the mobile device to connect to the printer.

How do I print with NFC on my Samsung printer?

Touch the NFC antenna of your mobile device to the product NFC tag on your product again. The printer and mobile device connect. Note: If the mobile device and product disconnect, try to print or scan a document. The mobile device and product should reconnect automatically.


1 Answers

It appears that the hp EPrint app supports nfc printing without option selection. This video demonstrates how to print through EPrint using nfc. If you export the document to the app, it will show preview mode. When the preview is shown, you simply place the phone on the printer's nfc chip and it should automatically print with no additional options or dialogue.

like image 153
Defalt Avatar answered Oct 06 '22 17:10

Defalt