android media scanner bug?

Short question, When usb mass storage mode is enabled, I replace a image file in sdcard with another image file with the same name, Then disable usb mass storage mode, Enter gallery, The thumbnail is not updated, This issue exists even in Nexus S device, What's wrong? Thank you!

-------------Problems Reply------------

I think the media scanner service doesn't get the chance to rescan the image. Try rebooting your phone. The media scanner runs on startup by default so it should rescan the SD card then.

Or.. you can just unmount then mount the SDCard. I think MediaScanner also runs when mounting a SDCard.

Category:android Views:0 Time:2011-03-18
Tags: android

Related post

  • Android media player bug 2011-03-07

    I have the media player playing an mp3 when I load my application. But I had to move this application and now every time I load the application this gives a force close error. The media player is opened like this: final MediaPlayer mp = MediaPlayer.c

  • Android: Problem with Media Scanner not Running 2011-03-05

    I have an app that user's can draw with, and then 'export' that drawing as a .png file to external storage, if present. Generating the PNG, copying the file to external all work like a charm, but a rather unique problem happens; after the export, if

  • android using media scanner for SD card 2011-04-11

    hi to all im trying to save an image to an SDcard and im having a problem using the media scanner to scan the new saved file so that it is immediately available the errors are in the following lines new String[] { file.toString() }, null, // error: f

  • How to get added and removed files using Media scanner or other android API? 2011-06-11

    When we remove or add any file(even text, document or non-media files) on the sdcard in Android (or even after transfering a file on PC though USB mode), media scanner gets started. I want to know which files are removed or added (in array or one at

  • Know when media scanner is done working 2011-05-18

    How can I know when Android's MediaScanner has indexed everything? I would like to wait to show something dependent on the image and video content providers until the media scanner has done it's thing. --------------Solutions------------- You need to

  • Motoblur prevents me from forcing media scanner to run 2012-01-05

    I have an application that makes changes to some of the files in the media folders (DCIM/Camera specifically) After I make theses changes the application sends this broadcast in order to force the MediaScanner to run so that my changes get reflected

  • Extending Android media player 2009-07-08

    I want to extend the built in media player, however when i grab the sources, there are a lot of external dependencies that are hard to track down. Is there any way to get the source and the dependencies so that i can have it as a standalone and then

  • Regarding playing media file in Android media player application 2010-04-14

    I am new to android development. I just started with creating my own media player application by looking at the code samples given in Android SDK. While I am trying to play a local media file (m.3gp), I am getting IOException error :: error(1,-4). Pl

  • Cannot resolve android.media.MediaFile 2010-06-22

    I have android sdk 2.1 and it cannot resolve android.media.MediaFile package. Why is it so? How can I solve this problem? To which version does android.media.MediaFile belong? Has it been deprecated? --------------Solutions------------- There is no s

  • which android version supports android.media.MediaFile? 2010-06-22

    Does android 1.5 or 1.6 support android.media.MediaFile ? --------------Solutions------------- There is no class android.media.MediaFile in the sdk. android.media The class is definitely part of the Android os but it must be internal so you should no

  • For android media player mp3 vs. wav 2010-06-27

    I want to know if it is faster to load and play a small wav than a small mp3 file on android media player. The wavs are about 30 KB and the same files as mp3s are about 20 kb. The mp3s have the advantage to save resource space. The sound files have t

  • android Media Player stopped working 2010-07-07

    Last night, my app was working just fine streaming audio files with the MediaPlayer in my app. I came into work this morning and it wont play any audio file and I havent changed my code at all. here is the error log that it is printing out via LogCat

  • Android Media database direct access from code 2010-07-20

    Can I access android MediaProvider (Images & Videos) databases directly from my code rather then through a content provider ? I'm planning to have my own Cursor implementation so inside it I want to access the media databases directly, possible o

  • Accessing the Android media stream for audio visualization 2010-08-26

    Basically, I want to make an audio visualizer. I know it's possible, because my phone came with a few live wallpapers that do it. The problem is, I can't seem to figure out how to do this with the Android API. My app would pick up the currently playi

  • Android Media Player Threading/Concurrency 2010-08-30

    I am using the default Android Media Player in an Activity, trying to play back a couple of video files. However I have a problem with programming what I want. The desired program outcome would be the following: A video file is played back After that

  • Android Media Player Error 2010-09-12

    I am trying to play media player in android.But after some time it is giving following errors and the songs stop. 09-12 21:15:37.265: ERROR/PlayerDriver(31): Command PLAYER_PREPARE completed with an error or info PVMFErrResource 09-12 21:15:37.275: E

  • How to assign utube video url to android media player 2010-10-17

    I want that when i will pass the utube url to media player it will automatically load the video and play in it. Example: http://www.youtube.com/watch?v=WAG8e_53le4 This type of url i want to play in android media player --------------Solutions-------

  • Android media player stops playing while streaming mms protocol? 2010-11-12

    My android application plays a radio through MMS Stream using AudioTrack class as described here The Problem is that after playing first chunk the device doesn't get any audio output. Here is the logcat info that may be useful DEBUG/WifiService(1904)

  • Android Media Player Restart Audio After Calling Stop 2010-12-20

    I'm able to stream audio and stop it without any problem, but when It try to start it again after stop it doesn't start and I get IllegalState exception. Here is what I'm doing Start Playing mediaPlayer.setDataSource(PATH); mediaPlayer.prepare(); med

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.144 (s). 11 q(s)