How do I save files to a user accessible location?
NickName:Raptor Jessus Ask DateTime:2019-08-21T13:37:29

How do I save files to a user accessible location?

I am writing an application that can import and export data and I need the path to this data to be accessible to the user, but not on the SDcard. I would prefer to put it somewhere alongside the Downloads folder, or somewhere visible to a file explorer without root permissions. I do NOT want to save data to /data/data, but I would like to save it somewhere in /storage/emulated/0/. I don't know how to specify this location in a way that would support all android devices.

I have looked at many threads that are similar but not exactly what I want. Saving to the SDcard is not desirable since not everyone has external storage, but I also don't want to save to File.applicationDirectory or File.applicationStorageDirectory because the User is unable to view these locations.

Copyright Notice:Content Author:「Raptor Jessus」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57585066/how-do-i-save-files-to-a-user-accessible-location

More about “How do I save files to a user accessible location?” related questions

How do I save files to a user accessible location?

I am writing an application that can import and export data and I need the path to this data to be accessible to the user, but not on the SDcard. I would prefer to put it somewhere alongside the

Show Detail

Download a file from a URL to a user accessible location

I am building an app using Nativescript/Angular 2 I want to be able to download a file from a URL and save it to the device in a location the average user would have no problems finding it. I beli...

Show Detail

How can i save files in the phone accessible by several apps?

I try to develop several WP8 apps using the same credentials for all(same user and password).So if the user choose to change his credentials he does only once in one app and it will change for all....

Show Detail

How do I save the current user location in defaults?

I am trying to give users the option to save their current location. I use the defaults to save it and I found out, how to get the users location. But I am not sure how to combine those two tasks. So

Show Detail

Programatically save files to user specified location in firefox extension

I'm writing a firefox extension that writes files to a directory structure at a specified location by the user but can't seem to find documentation on how to include that in the permissions of the

Show Detail

How to save dynamic files accessible to the user?

I'm using the cordova-plugin-file to save pdf files to the user's async saveDocument(base64Response: string, fileName: string) { const folderPath = this.file.documentsDirectory; await window.

Show Detail

save files in a location of android where mobile user cannot access

How to keep files in a location of android where mobile user can not access. I have used context.getDir("SystemRecordLog", Context.MODE_PRIVATE) to keep files in phone memory but if there is a inte...

Show Detail

Forcing a user to pick the location to save a file

I have a page that allows a user to download a zipped file of spreadsheets, the problem I'm having is when the file is downloaded the user can't find the file. The file is on their machine however ...

Show Detail

Where to save user created files

My program is small and simple. It functions as a text editor with the exception of using credentials and encrypting save files. Though it is arguably arbitrary once encrypted, I strongly desire t...

Show Detail

Creating not accessible files on user disc

I'm thinking about my new application architecture and in my head I came across a question which I am not able to answer myself. So my native app written in electron (javascript) will be creating a

Show Detail