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

Feature/m permissions #45

Merged
merged 8 commits into from
Dec 23, 2016
Merged

Feature/m permissions #45

merged 8 commits into from
Dec 23, 2016

Conversation

domagojkorman
Copy link
Contributor

@domagojkorman domagojkorman commented Dec 22, 2016

Changes

ContentProvider

To share the data I added ContentProvider. Tried with FileProvider first but it can share only internal/files and internal/cache directories while database file is in internal/databases. I reused some of the code from FileProvider class and created custom ContentProvider that allows us to share database.

Android M permission

To copy the database to external storage I added permission check and request.

Little refactor

Removed some parts of the unnecessary code that were causing ClassCastException.

Fixes #42 and fixes #43

@domagojkorman domagojkorman self-assigned this Dec 22, 2016
Copy link
Contributor

@reisub reisub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff

@reisub reisub merged commit aeb069d into master Dec 23, 2016
@reisub reisub deleted the feature/m-permissions branch December 23, 2016 12:30
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.

ClassCastException while sharing db Handle permissions
2 participants