科尔多瓦创建的文件不会在Windows资源管理器中显示,除非重新启动设备 [英] Cordova created files not showing in Windows Explorer unless restart of device

查看:89
本文介绍了科尔多瓦创建的文件不会在Windows资源管理器中显示,除非重新启动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近创建了一个Cordova应用程序以在Android桌子上工作.一切正常,我的应用程序使用 org保存了用户录制的音频文件. apache.cordova.media 插件.

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.

我将录制的声音文件保存到"mnt/sdcard/"中的特定目录中,当使用ES File Explorer浏览设备时,我可以看到.mp3文件.但是,如果我导航到Windows资源管理器中的同一目录(通过USB连接设备),则看不到文件.

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.

有没有人知道Cordova或更具体的媒体插件的解决方法?

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

*编辑

我还尝试过进入ES File Explorer并剪切文件并将其粘贴到其他目录中.这似乎可行,并在Windows资源管理器中显示了该文件.看来文件仍附加在应用程序上,因此不会显示.我已经尝试退出应用程序,甚至强行关闭但仍然无法正常工作.

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.

推荐答案

重新启动设备&重新连接适配器.这可能有帮助.

restart device & reconnect adapter. This might help..

这篇关于科尔多瓦创建的文件不会在Windows资源管理器中显示,除非重新启动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆