For people who want to use the same UPnP library, I rebuilt one .jar file from Teleal Cling core (1.0.5), Teleal Cling support (1.0.5) and Teleal Common (1.0.14). I modified smoothly the code to permit full configuration (port numbers, multicast address, socket options and TCP buffer size) from the application.
All the android java classes were moved to the application itself, and AndroidUpnpService is a real android background service… All this code is “Copyright (C) 2010 Teleal GmbH, Switzerland” (GPL V3).
New Teleal-Cling library 1.0.5y (July 21st, 2021)
I had to work again on this library to remove the requirement of Apache HTTP Client library which is no more fully integrated in Android. The new code of StreamServer and StreamClient is developed with Java Socket and it should work on any Operating System and with all Java version.
The current 1.0.5y version, is still a code "under development".
In addition, this version of the code creates String variables in the StreamServer and StreamClient, and these variables are purely UTF-8. This can also be a constraint for you.
Teleal-Cling 1.0.5y source code :
Teleal-Cling Android sources as examples:
I plan to distribute the full source code of eXport-it (also under GPL V3), but when the code will be more stable.