Hi guys,
I've been using MESShareLibrary to share a file generated by my app with other apps like Gmail.
Unfortunately this doesn't seem to work anymore. Searching the forums I found out you need to use FileProvider these days.
But the example Erel has provided doesn't work for me because it can't find the B4XPagesManager libary.
It would be a great help if someone can give me, or point me towards, a working example.
I've been using MESShareLibrary to share a file generated by my app with other apps like Gmail.
B4X:
Sub shareFile(strFileName As String)
Dim share As MESShareLibrary
share.sharebinary(File.DirRootExternal & "/StarLog/" & strFileName, "text/plain", "Startlog export file","Startlog export file")
End Sub
Unfortunately this doesn't seem to work anymore. Searching the forums I found out you need to use FileProvider these days.
But the example Erel has provided doesn't work for me because it can't find the B4XPagesManager libary.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim pm As B4XPagesManager
pm.Initialize(Activity)
End Sub
It would be a great help if someone can give me, or point me towards, a working example.