show files in picture gallery???

ilan

Expert
Licensed User
Longtime User
hi

i am trying do show file that i saved in my application in the picture gallery

if i store my file in direxternal it works but can i show file from dir internal in my phone picture gallery??

i use this code but its not showing anything in the gallery (only if i use direxternal)

B4X:
    Dim i2 As Intent
    i2.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", _
        "file://" & File.Combine(File.DirInternal & "/gematria+", DateTime.Date(now) & ".png"))
    Dim p As Phone
    p.SendBroadcastIntent(i2)
 
Top