How can I print via a Wi-Fi printer in Android using Wi-Fi Direct?

My main question is: suppose you are on a street with an Android tablet and a WiFi printer. Is it possible to connect to this Wi-Fi printer on an Android device and print directly without connecting to a LAN?

I mean, can I connect to a WiFi printer, for example, a Bluetooth printer ?

+4
source share
1 answer

Well, to answer your question, let me explain to you how this works. To print a file via Bluetooth, you need to have the appropriate profiles on your phone, for example

  • BPP - Basic Printing Profile
  • HCRP - Hard Drive Replacement Profile
  • BIP - the main profile of image processing, etc.

If the phones have these profiles built into the bluetooth stack, then you can develop a top-level application using the bluetooth api and use these functions.

For Wi-Fi attraction, there are many cloud printing apps in the Google Play store that you can use. To achieve wifi printing, you can configure the server and make a cloud push to the server, and the server pushes the file to the printer. There are many materials available online to do this.

+2
source

Source: https://habr.com/ru/post/1488254/


All Articles