access mtp device with java

旧街凉风 提交于 2021-01-02 05:33:11

问题


I have developed a small application that copies files from a folder to another.I use a JFileChooser to select the target directory.Something I hadn't tried for a long time is to select my phone as the target directory.I tried but I couldn't find it from my JFileChooser. I read some other so questions and I was wondering if there is that will allow me to copy files from my pc to an mtp device? I am targeting linux and windows platforms.

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


回答1:


In modern Android releases, USB Mass Storage has been disabled. You can try to enable USB Debugging (in Developer Options) and see if it helps. I've tried it successfully on Windows 10 with a LG G3 Android 5.0



来源:https://stackoverflow.com/questions/39210514/access-mtp-device-with-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!