I'm using the following code to save an image to the gallery.
[/QUOTE]
I got most of this code from another thread. I'm trying this on a Galaxy Tab A and nothing seems to happen. I get no errors, but the picture doesn't end up in the gallery. I know the source file is there. Anyone have any ideas?
Colin
B4X:
Dim Out AsOutputStream
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "PI.jpg", False)
bmp.WriteToStream(Out, 100, "JPEG")
Out.Close
If File.Exists(File.DirInternal,"PI.jpg") Then
Dim i As Intent
i.Initialize("android.intent.action.MEDIA_SCANNER_SCAN_FILE", lFile)
Dim p As Phone
p.SendBroadcastIntent(i)
End If
I got most of this code from another thread. I'm trying this on a Galaxy Tab A and nothing seems to happen. I get no errors, but the picture doesn't end up in the gallery. I know the source file is there. Anyone have any ideas?
Colin