Runtime-error notes app

hello everyone i'm making a notes app and i'm aiming for for when save button pressed it it saves to documents but when i press the save button all it says is, runtime error, no error problem how do i fix that, please someone help.

Screenshot of error please
Relevant blocks image please


here it is i read google to do it

OK

Android version ?
Filescope setting ?
Error message ?

android 4.1.2
legacy
runtime-error
warning runtime error (no error problem)

On Android < 11, you need to request WRITE_EXTERNAL_STORAGE permission to save a text file to external storage. On Android versions prior to 4.4 (API 19, KitKat), this permission is also required for ASD.

thanks got it wasn't anything to do with my blocks had to give the file read and write

No, only WRITE permission, for two reasons:

  1. WRITE implicitily grants READ permission.

  2. Manifest.permission  |  API reference  |  Android Developers

1 Like