Android and JFileChooser
问题 I've developed a desktop application that allows the user to extract images from their phone. When I first started this project, my android was running Gingerbread. When I plugged my phone into the laptop via USB, it would appear as a "Device with removable storage". Therefore, the JFileChooser would pick it up. nwdir = new JFileChooser(); nwdir.setCurrentDirectory(new java.io.File("C:\\")); nwdir.setDialogTitle(choosertitle); nwdir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); nwdir