I am opening an .jpg with an i.ACTION_VIEW intent.
It opens in gallery , but there is no menu options(share,Facebook,Gogle+) just the picicture .
How can I get all the menu options of the gallery to work.
My goal is to load the image.jpg in the default gallery and be able to use all the features of the gallery(share, delete, crop, etc.
It opens in gallery , but there is no menu options(share,Facebook,Gogle+) just the picicture .
How can I get all the menu options of the gallery to work.
My goal is to load the image.jpg in the default gallery and be able to use all the features of the gallery(share, delete, crop, etc.
B4X:
'Thanks NJdude :)
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 su As StringUtils
Dim Filepath As String
Filepath = File.Combine(File.DirRootExternal, "Image.jpg")
Dim i As Intent
'i.Initialize(i.ACTION_VIEW, "file://" & su.EncodeUrl(Filepath, "UTF8"))
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "Image.jpg"))
i.SetType("image/*")
StartActivity(i)
Log("error:"&I)
End Sub