note: I'm NOT asking on how to "force" gallery to re-scan files, as this is done by:
I'm asking if Gallery (or whatever built-in app is used to view pictures) can be invoked from within my app - displaying pictures in a specific folder (album)?
where FilePath does not refer to internal folder
Dim i As Intent i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", "file://" & FilePath) Phone.SendBroadcastIntent(i) --- OR --- Dim ctxt As JavaObject ctxt.InitializeContext Dim MediaScannerConnection As JavaObject MediaScannerConnection.InitializeStatic("android.media.MediaScannerConnection") Dim interface As Object = MediaScannerConnection.CreateEventFromUI("android.media.MediaScannerConnection.OnScanCompletedListener", "ScanCompleted", _ Null) MediaScannerConnection.RunMethod("scanFile", Array(ctxt, Array As String(FilePath), Array As String("image/jpeg"), interface))
sub btn_click "make a call to invoke gallery(FilePath)" end sub