That got it, thanks! On Apr 4, 4:00 pm, Robin Talwar <[email protected]> wrote: > http://stackoverflow.com/questions/5250515/how-to-update-the-android-... > > 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 <[email protected]> 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/MediaScannerConn... > > 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#AC... > > > 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#file... > > > 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

