Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support importing/exporting via content providers#153

Merged
brarcher merged 5 commits into
masterfrom
content-imports
Nov 22, 2017
Merged

Support importing/exporting via content providers#153
brarcher merged 5 commits into
masterfrom
content-imports

Conversation

@brarcher
Copy link
Copy Markdown
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