I have 2 apps
I want them to be able to either share a 3rd folder or to create a shared folder or simply access to download folder
This is for them both to share some temporary data file that one will write and the other read
Can i do it ?
How?
Does it require permission to access all files? If so how do i get this permission?
Edit: FileProvider is included as an internal library now. After investigating several issues with the current FileProvider code that you can find in the forum, I decided to make some improvements and implement it in a class. Starting from Android 7 (API 24) you cannot directly share file uris...
Google seems intent on dumbing down Android to the point of uselessnes to me. I think of my devices as little computers and I want a proper file system on them, not the limited tortuous things that Google offers and that I don't understand, ContentChooser, FileProvider, ... o_O I'm getting old...
thank you guys for the replies
i think i'm lost here
i just want to be able to read and write files to download folder or any other if that not possible
i don't want the user to be in the flow or to need to do anything
App1 read & write to Downloads
App2 read & write to downloads
it will always be the same file name
App1 will check if the file exists
if yes will delete it and call App2
App2 will check if exists
if yes will delete and write to it and exit
App1 will get control back and if the file exists it will read and delete it
app1 & app2 are currently working but share the data in cloud
i want them to share it on the device and save the access to the cloud
It is not possible in newer versions of Android (on the Play Store). Two apps cannot share a file unless you ask the user to grant access with ExternalStorage. And you will not have direct access to the file so you will probably need to copy it to the app folder each time before opening it.
It is not possible in newer versions of Android (on the Play Store). Two apps cannot share a file unless you ask the user to grant access with ExternalStorage. And you will not have direct access to the file so you will probably need to copy it to the app folder each time before opening it.
i have no problem to ask the user once for permission
i do it anyways for other things so i can add one more permission
now, if the user granted the permission - will i be able to do what i want seamlessly to the user?
if so than it is perfect to me - how do i do it? just by external storage?
how do other apps that do read and write to downloads do that?