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

Accessing SD card #9

Open
whatsnorth opened this issue Aug 2, 2017 · 4 comments
Open

Accessing SD card #9

whatsnorth opened this issue Aug 2, 2017 · 4 comments

Comments

@whatsnorth
Copy link

I have been looking a simple text editor. I really like yours. I can get it work with the internal memory. I can select a folder on the external sd card, but when I try to save it says permission denied. I have checked storgae permission and Snotepad has write permissions. Running Andriod 7.1.1, which I think might be the problem. I use ES file explorer and it had me do an extra step to grant SD write permissions the first time I tried to modify things on the sd card. Any idea's?

@aario
Copy link
Owner

aario commented Aug 3, 2017

Hi,
Thanks for using the app and filing bug report. I don't think the Run Time Permission Request is needed as I already requested it somewhere in xml files. Nevertheless I will check myself and get back to you. I can check it on latest lineageos.

@whatsnorth
Copy link
Author

Have screen shots of the error and of another app having to request the "QuickEdit write permission" if that helps. Just not sure how to send that.

@aario
Copy link
Owner

aario commented Oct 2, 2017

I was able to replicate the issue. Tried hard to grant write permission but failed.
Tried this:
https://stackoverflow.com/questions/39011657/permission-denied-but-permission-is-set-in-manifest
Didn't work.
(checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED)
Returns true but still write fails!
Tried this:
https://developer.android.com/guide/topics/providers/document-provider.html
But couldn't understand where to start from and there is no complete example there. Will try again later.

@whatsnorth
Copy link
Author

whatsnorth commented Oct 3, 2017 via email

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

No branches or pull requests

2 participants