In my private (not publishing to Play Store and using on my private Android 10 device) phone I've made myself an app that saves its' backups in storage/emulated (File.DirRootExternal), I've implemented permission checking and everything works well. I really prefer to have it over there as it's really important for me to do different things with that file and this way it's very easy.
If that matters, I've placed SetApplicationAttribute(android:requestLegacyExternalStorage, true) in the manifest editor (which I'm still not sure what does).
My question is, will Android updates break that functionality? Is there any other non-deprecated way to write files in that storage? For example apps like Whatsapp still hold their data in Whatsapp folder.
As mentioned in Erel's "Code smells" post:
"File.DirRootExternal - It will soon become inaccessible directly. If really needed then use ContentChooser or ExternalStorage."
What is ExternalStorage? Is it a library or is it associated with runtimePermissions? I'll be happy to hear any answers, also sorry if I've done something wrong in the forum posting that question there (for example wrong thread or something)
TL;DR: Is there any other way to save in the same location as DirRootExternal refers to? And will it support new Android versions?
If that matters, I've placed SetApplicationAttribute(android:requestLegacyExternalStorage, true) in the manifest editor (which I'm still not sure what does).
My question is, will Android updates break that functionality? Is there any other non-deprecated way to write files in that storage? For example apps like Whatsapp still hold their data in Whatsapp folder.
As mentioned in Erel's "Code smells" post:
"File.DirRootExternal - It will soon become inaccessible directly. If really needed then use ContentChooser or ExternalStorage."
What is ExternalStorage? Is it a library or is it associated with runtimePermissions? I'll be happy to hear any answers, also sorry if I've done something wrong in the forum posting that question there (for example wrong thread or something)
TL;DR: Is there any other way to save in the same location as DirRootExternal refers to? And will it support new Android versions?