Access to mtp device with java

I developed a small application that copies files from a folder to another. I use JFileChooser to select the destination directory. What I have not tried for a long time is to choose my phone as the target directory. I tried but I could not find it from my JFileChooser. I read some other questions, and I was wondering if this would allow me to copy files from my computer to the mtp device? I am targeting linux and windows platforms.

My phone is LG Nexus 5 android 6.0.1. Thank you for your time. If you want to lower, I would like to know the reason

+8
java android swing jfilechooser mtp
source share
1 answer

In modern versions of Android, USB Mass Storage is disabled. You can try to enable USB debugging (in the developer settings) and see if it helps. I tried this successfully on Windows 10 with LG G3 Android 5.0

+1
source share

All Articles