Hi all i am trying to open an image with the default gallery on a phone.
on the phone I getting error.
The Application Gallery has stopped unexpectedly .
Does anyone know what might be the fault here.
B4X:
Sub Camera1_PictureTaken (Data() As Byte)
camera1.StartPreview
Dim out As OutputStream
out = File.OpenOutput(File.DirRootExternal, "Image.jpg", False)
out.WriteBytes(Data, 0, Data.Length)
out.Close
ToastMessageShow("Image saved: " & File.Combine(File.DirRootExternal, "Image.jpg"), True)
Dim i As Intent
i.Initialize(i.ACTION_VIEW, File.Combine(File.DirRootExternal, "Image.jpg"))
i.SetType("image/*")
StartActivity(i)
End Sub
on the phone I getting error.
The Application Gallery has stopped unexpectedly .
Does anyone know what might be the fault here.