Questions tagged «mtp»

12
Nexus 4无法通过MTP显示文件
我试图将一个简单的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 File Manager在手机上看到文件: 但是Windows看不到...: adb shell …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.