Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow better/precise specification of the file/save directory #32

Open
jgriffiths opened this issue Oct 19, 2015 · 7 comments
Open

Allow better/precise specification of the file/save directory #32

jgriffiths opened this issue Oct 19, 2015 · 7 comments
Labels
enhancement Genuinly new functionality.

Comments

@jgriffiths
Copy link
Contributor

Currently the user has to guess where the file will end up.

@jgriffiths jgriffiths added the enhancement Genuinly new functionality. label Oct 19, 2015
@dschuermann
Copy link
Member

We should use ACTION_CREATE_DOCUMENT from https://developer.android.com/guide/topics/providers/document-provider.html for this on Android 4.4.

@android441user
Copy link

Dear Dominik, many thanks for developing and maintaining this great piece of software!

Indeed, this feature ist definitely necessary. What's the path at the moment anyway?

@jgriffiths
Copy link
Contributor Author

@android441user The code currently uses Environment.getExternalStorageDirectory() to determine where to put the exported file. The API documentation explains this here.

@android441user
Copy link

Any news on this topic?

1 similar comment
@sefernet
Copy link

Any news on this topic?

@baloe
Copy link

baloe commented Dec 29, 2018

WHERE does my exported file actually end up? I cannot find it anywhere.

@martin-braun
Copy link

martin-braun commented Apr 5, 2024

We need a dynamic path that can be configured.

EDIT: Ok, after seeing

String lastName = settings.getString(Settings.PREF_LASTEXPORTFILE);
String suggestedName = calculateFileName(selectedCal.mDisplayName);
if (TextUtils.isEmpty(lastName))
lastName = suggestedName;
String file = getFile(lastName, suggestedName);
if (TextUtils.isEmpty(file))
return;
settings.putString(Settings.PREF_LASTEXPORTFILE, file);
if (!file.endsWith(".ics"))
file += ".ics";
String fileName = Environment.getExternalStorageDirectory() + File.separator + file;
it's clear that I can just put any subpath not just the file name without extension into the Textbox. So I put my sub path to my Syncthing directory in there and it's properly saved the preferences and consequently used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Genuinly new functionality.
Projects
None yet
Development

No branches or pull requests

6 participants