I have an android app that sends some data via FTP. Now, I want to add the possibility of passing that data even via USB if there is no available network.
I was trying to use the solution from the following question but it has no effect. The external device is just the SDcard and not windows desktop.
Is there any way to make something like showing a "synchronization" message when a device is connected and then by pressing a button to pass a file to the Windows folder?
I thought of making a Windows program that was going to launch ADB commands like adb pull
when the device is connected. However, is there a way to do it only from Android Application?