Is it possible to tell Aquamail where to save the majority of its data?
StR·33 replies53k views
Sr. Member·#21
User decides where to save it.
After user "creates" file, you get uri to this file I think and you can write to it.
Hero Member·#22
>> User decides where to save it.
The user can already decide where Aqua "saves" attachments.
>> After user "creates" file, you get uri to this file I think and you can write to it.
Is there any reason you think that the user will be able to choose / create a file on the "external" SD card and it'll work?
I just tried creating a file on "ext_sd" in Solid Explorer, it failed with "error, limitation of Android 4.4, install an app to fix your system permissions, you need to be rooted...". But we already knew that.
On a rooted device with a custom ROM, creating files on "external" SD works in Solid Explorer, and it also works in AquaMail.
Sr. Member·#23
SAF is system component, there are no limitations unlike 3rd party file managers.
Hero Member·#24
SAF is a framework that provides a unified abstraction of actual storage back-ends.
It does not store data itself.
There is no built-in back-end that provides a view of the raw file system -- maybe because Android has been steadily moving away from "file system" view of the world to "document collections".
Other SAF back-ends are still third party apps, and would not be signed by system keys.
If I'm missing something and you can point me to something specific (e.g. "Kostya, you dumbass, just call this function and everything will magically work") -- it would be great.
Sr. Member·#25
On Lollipop user just pick "sd card" in SAF once and AquaMail can access all files on sd card (real one)
Hero Member·#26
Pick when and where exactly? Access how, read or write?
Also:
5.0 has so far been released for: Nexus 4, 5, 6, 7, 9.
None of those devices has a "real" sd card.
I must be missing something, or just too dumb to understand.
Sr. Member·#27
If user chooses X directory via SAF, app grants access to this dir. Read and write.
G3 and S5 are getting Lollipop, so you can test it maybe.
Hero Member·#28
>> user chooses X directory via SAF
I don't see a directory chooser in SAF if I go to add a new attachment (when composing a message) in Aqua.
And SAF's Unified Document Picker is what comes up then, since 4.4
>> G3 and S5 are getting Lollipop, so you can test it maybe
I have a G3, no 5.0 yet.
Sr. Member·#29
There is special intent to pick directory I think.
Hero Member·#30
>> There is special intent to pick directory I think
Ah!
Ok, thanks, now I know what to try -- once my G3 actually gets 5.0.
>> Apps can launch this intent to pick and return a directory from any supported DocumentProvider, including any of the shared storage supported by the device
Argh.
It's not just the file system -- it will list things like "Google Drive" and "Dropbox" etc.
>> We heard loud and clear that developers wanted richer access beyond these directories
And over-engineered it by a factor of 10 or so...
Just need to wait for my G3 to get the 5.0.
Sr. Member·#33
Not only cloud drives, you can pick any folder in the device too afaik.
Many file managers are document providers so in SAF you can select directory even by your favourite file manager.
Hero Member·#34
Actually, seems to work -- I've only tried the "picking" part, not actually creating documents there yet...
As for file manager integration -- I've got Solid Explorer, and it does show when picking *files*, but does not show when doing this new "pick root directory" thing. I guess that part's not implemented yet (I mean in Solid Explorer).
The good part though, is that Google Drive didn't show. It would be weird to have the "save" folder be in the cloud.