It is necessary that when you start the application in the background, an FTP server is started so that files can be downloaded directly to this server from another device. When I made a Windows application, I managed to do this using IIS (Internet Information Services), and for android everything is different, third-party modules for downloading and uploading to an FTP server are implemented, it only remains for the device to create its own ftp server. I tried to do it using apache ftp server libraries, but as it turned out, it is not suitable for the Android OS.
1 answer
Learn the source FTP server for Android swiftp on github
Not rummaging in guts, but judging by the manifest, everything is done on Service and BroadcastReceiver
|