http://stackoverflow.com/questions/5250515/how-to-update-the-android-media-database
the link says about media scanning so you can relate to your problem also, its almost the same On Sun, Apr 3, 2011 at 9:56 AM, Chinmay S <cvs...@gmail.com> wrote: > Hi Paul, > > As you suspect, the gallery depends on the mediascanner to update the list > of files. > > The samsung MyFiles app will rescan/refresh the contents of a directory > every time you re-open the app. > > To "force" a mediascanner update on a directory, you might want to use * > scanFile*. > > > http://developer.android.com/reference/android/media/MediaScannerConnection.html > public static void *scanFile* (Context *context*, String[] *paths*, > String[] *mimeTypes*, > MediaScannerConnection.OnScanCompletedListener *callback*) Alternately u > can use a broadcast intent for the same purpose: > > http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_SCANNER_SCAN_FILE > > Also note that by default, "internal" data of any app is considered > private, > and mediascanner won't scan the app's private directory for media files: > > http://developer.android.com/guide/topics/data/data-storage.html#filesInternal > > > regards > CVS > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en