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

Support importing/exporting via content providers #153

Merged
merged 5 commits into from
Nov 22, 2017
Merged

Conversation

brarcher
Copy link
Owner

Soon more than files will be imported, as content URIs will
also be supported. This then makes the File argument for
onTaskComplete() not always useful, as there may not
be a direct file used. To this end, removing the File
argument as the caller should know what was passed
to the ImportExport task anyway.
When importing backed up settings other activities may provide
data via a content URI. This is especially likely on Android 7+,
where providing a file URI is flagged as a security issue.
To support such activities, this commit enables supporting
content URIs for importing settings.
On Android 7+ providing another activity a file:// Uri is
discouraged. This changes instead uses a content provider
backed by a FileProvider to give backup data to other
activities.
@brarcher brarcher changed the title Support importing via content provider URIs Support importing/exporting via content providers Nov 22, 2017
@brarcher brarcher merged commit 7b4c119 into master Nov 22, 2017
@brarcher brarcher deleted the content-imports branch November 22, 2017 02:24
TheLastProject added a commit to franga2000/loyalty-card-locker that referenced this pull request Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant