Cordova created files not showing in Windows Explorer unless restart of device

做~自己de王妃 提交于 2019-12-11 02:53:33

问题


I have recently created a Cordova Application to work on a Android table. everything is working great and my application saves audio files that have been recorded by the user by using the org.apache.cordova.media plugin.

I am saving recorded sound files to a specific directory within "mnt/sdcard/" and when exploring the device using ES File Explorer i can see the .mp3 files. However if i navigate to the same directory within Windows Explorer (with my device attached via USB) i am unable to see the files.

I have been looking around the web for a fix for this and a few forums said that restarting the device would show the files. I tried restarting and my files did show up. However I do not want to have to restart my device everytime i want to get files off the device.

This post clearly describes a way to fix this if you are writing a native Android application however I am writing my application using Cordova and the media plugin.

Does anyone know a way around this for Cordova or more specifically the media plugin?

*Edit

Also something I tried was going into ES File Explorer and cutting the file and pasting it in a different directory. This seemed to work and showed the file within Windows Explorer. It looks like the file is still attached to the application and so wont show up. Ive tried quitting out of the application and even doing a force close and still not working.


回答1:


restart device & reconnect adapter. This might help..



来源:https://stackoverflow.com/questions/28369123/cordova-created-files-not-showing-in-windows-explorer-unless-restart-of-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!