Android Question Invoking Gallery

boten

Active Member
Licensed User
note: I'm NOT asking on how to "force" gallery to re-scan files, as this is done by:
B4X:
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))
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)?

something like:
B4X:
sub btn_click
   "make a call to invoke gallery(FilePath)"
end sub
where FilePath does not refer to internal folder
 
Top