我试图简单地写一个简单的XML文件到SD卡,我注意到,我的Nexus 4确实写入文件,但它不能通过使用Windows 7的MTP协议查看。 码: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); CustomerQueryRqType customerQueryRequest = new CustomerQueryRqType(); Serializer serializer = new Persister(); File myFile = new File(Environment.getExternalStorageDirectory() + "/customerQueryRequest.xml"); try { boolean created = myFile.createNewFile(); serializer.write(customerQueryRequest, myFile); } catch (Exception e) { e.printStackTrace(); } } 我可以用Astro文件pipe理器在手机上看到这个文件: 但Windows没有看到它…: 目录下的adb shell显示: ls -l drwxrwxr-x root sdcard_rw 1970-01-16 20:51 […]