Does anybody know how to share file location to File apps or My Files app on Samsung phones and tablets?
I want the user to be able to view one or more files in the in a file or folders app, so they can decide what they want to do with it after words..
B4X:
Dim FileName As String = r(2)
File.Copy(strDecDirLoc, FileName, Starter.Provider.SharedFolder, FileName)
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "")
Starter.Provider.SetFileUriAsIntentData(in, FileName)
'Type must be set after calling SetFileUriAsIntentData
'in.SetType("*file/*")
in.SetType("*/*")
'in.SetType("application/*")
StartActivity(in)
I don't have the files stored in the internal dir in the shared folder.. I have them stored in an external dir... not sure if this is the problem.. I have tried to change from internal dir to external and can not get it to work.. I have added my test app..
thanks for the response... I can already share files with your link above with no issues.. let me try to re phrase what I was asking..
I want to be able to share file location (not the file it's self) to lets say a file browser app, so when that file browser app opens.. it opens to the file locations.. If that makes since.