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 [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

Reply via email to