0

My app creates large files of my own format. We used to save those on device memory but from sdk level 30 we can't access them anymore (it is too slow and complicated to use DocumentFiles).

Is there a way to store files in scoped storage that are not media files, that doesn't increase app memory and bog it down?

And I am also worried about files being deleted when a user uninstalls the app.

What is the best way to do this?

Edit: We used to store it on a folder on the phone memory that is accessible by the user via file browser. On Android 11 we can't do that so the files would have to move to scoped storage i.e. Android/data//files

Is there another storage location that an app can access on Android 11 that won't be deleted after app uninstall?

erinys
  • 273
  • 1
  • 4
  • 18
  • You said `scoped storage`, I think you can check this document: https://developer.android.com/training/data-storage#scoped-storage – shrimpcolo Oct 08 '21 at 02:58
  • https://stackoverflow.com/questions/12648373/what-is-androidallowbackup refer this – Udhaya Oct 08 '21 at 02:59
  • `We used to save those on device memory` ??? Where ever you save them its always on device memory if not not on removable micro sd card. So what is it that you wanna tell us but did not? – blackapps Oct 08 '21 at 07:22
  • `Is there a way to store files in scoped storage` ?? Scoped storage is no storage location. So what is it that you wanna ask but formulated wrong. – blackapps Oct 08 '21 at 07:24
  • Sorry about the misunderstanding. English is not my first language. Please see my edits. What do you mean by "scoped storage is no storage location"? – erinys Oct 10 '21 at 18:49

0 Answers0