简体   繁体   English

连接到PC时如何更新android中的文件

[英]how to update files in android when connected to PC

i have an app that writes info whenever user hits record button & that works fine. 我有一个应用程序,只要用户单击“记录”按钮就可以写信息,并且运行良好。 Now when I connect my device to PC and run the app, it still works fine and shows me the latest info on device but it does not update the file that I am viewing on my PC. 现在,当我将设备连接到PC并运行该应用程序时,它仍然可以正常工作并向我显示设备上的最新信息,但它不会更新我正在PC上查看的文件。 How can I update(or refresh) my files every time after the file-writing is done ? 每次写入文件后,如何更新(或刷新)我的文件? (By the way, I am writing info on device's internal memory) (顺便说一句,我正在设备的内部存储器上写信息)

Are you trying to write to the SD card while it's mounted on your PC? 您是否正在尝试将SD卡安装在PC上进行写入? When it's mounted on a PC, it gets unmounted on your phone due to the way its file system works, that's why this is happening. 当它安装在PC上时,由于其文件系统的工作方式而无法在手机上安装,这就是这种情况的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM