I'm writing a simple Java app using Android Studio to save some text data to a file on the phone.I want to make an Export button that will copy the file to the PC when I connect via USB.
I have an app on my phone called My Files and it can see networked shared folders on the PC when connected via USB. So I think there may be a way to copy a file from the phone to that network folder, but I can't find any information that helps me figure out how to do it.
I'm mostly a database programmer, So any help on this would be appreciated. I think my main confusion is how to tell Java where to write the file. The only way the network location appears on the phone is equivalent to \\PC_NAME\SHARE_NAME.