I saw that example, but it is not direct printing, it calls 3rd party applications. Furthermore, first application wants upgrade to premium to use network printer, and second application is made for older version of Android.
I want to print without further user interaction (I have IP address of the printer stored in the settings).
Also, printing on Windows shared printers would also be great.
I understand you're right.
I'm at work right now and unfortunately I don't have the opportunity to run these examples, so I want to tell you about what I do in such situations.
When I encounter such problems, I use Android Studio + LAMW to find solutions more easily.
When it comes to Android-related operations, I first make my experiments on Android Studio. After the project runs smoothly, I add java codes to LAMW as needed.
First of all, I believe that Master
jmpessoa, one of the authors of LAMW, can easily find the solution to this problem.
Or if you examine the files below, you will see the working logic of LAMW more clearly. You can then modify it according to your needs.
Of course, all of these processes will require some trial and error.
Regarding the subject, Java Files used by LAMW. The java files here are transferred to the relevant projects. (You can make changes in these files.);
...\lazandroidmodulewizard-master\android_wizard\smartdesigner\java
Pas files that provide links to Java files. (You can make changes in these files.);
...\lazandroidmodulewizard-master\android_bridges
The java files used by the printing example mentioned in the previous message are;
...\lazandroidmodulewizard-master\demos\GUI\AppIntentDemoPrinting1\src\org\lamw\appintentdemoprinting1
Note: This approach may not be very professional. I welcome experts to offer their criticisms.