本文介绍了Android模拟器SD卡无法正常更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的Andr​​oid应用程序,拉在ListView的手机和显示器上的所有音乐文件。在code正常工作,但任何时候我换一首歌的SD卡,可以添加或删除,不显示的变化。它看起来好像SD卡进行高速缓存的东西。如果我重新安装SD卡,显示的变化。我可以关闭仿真器,并重新启动它,仍然没有什么变化,直到我重新安装。我怎样才能得到模拟器上读取SD卡更改,而不必重新安装每次有变化?我缺少一个设置或东西?

I have a simple Android app that pulls all music files on the phone and displays in a listView. The code works fine, but any time I change a song on the sdcard, either adding or deleting, the changes are not displayed. It looks as if the sdcard is cached or something. If I remount the sdcard, the changes are displayed. I can shut down the emulator and start it back up and still nothing changes until I remount. How can I get the emulator to read changes on the sdcard without having to remount every time there is a change? Am I missing a setting or something?

推荐答案

如果您添加任何媒体文件,仿真器,你必须运行菜单 - >开发工具 - >媒体扫描仪

If you add any media file to emulator you have to run Menu-->Dev Tools-->Media Scanner

,使其在画廊或模拟器的任何其他应用程序中显示。

to make it visible in gallery or any other application in emulator.

这篇关于Android模拟器SD卡无法正常更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 02:37