aario / snotepad

Simple/Suckless Notepad for Android
10 stars 9 forks source link

Accessing SD card #9

Open whatsnorth opened 7 years ago

whatsnorth commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

I tried to read that. It quickly became clear that it would take me a year of reading and practicing to be able to do anything in the suggested boxes. Out of my league. Thanks for taking a look.

Found several other notepad apps are struggling from the same problem. I have move my files to the internal memory and your app works great.

F-droid does not allow users to review. If you have another sight I would be happy to write something if that helps. Not much else I can do.

Jake O'Connor

On 2 Oct 2017 4:55 pm, "Aario" notifications@github.com wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aario/snotepad/issues/9#issuecomment-333662463, or mute the thread https://github.com/notifications/unsubscribe-auth/AdQIyLTxVx_L9Qiy7doYfX6adXWzN4Ohks5soU3YgaJpZM4OrxJQ .