Android Write file to accessible folder for windows usb file transfer
问题 I am operating with a standard Nexus 5 which is un-rooted with standard vanilla android 4.4.2 I would like to create a new file that is accessible in Windows through the standard USB connector. I don't want to root my phone. Here is a snippet of my code: File outputFile = new File(new File(getFilesDir().getParentFile(), "assets"), "example.xml"); Does anyone know of any directories that are writable in app + readable via USB transfer ? Thank you for any help ! :) 回答1: You can create the file