Looking for a solution to record information I get from my device with ESP32

WRITE permission must be declared on ALL Android versions, even Android 11+, which of course is a bug (which I've mentioned countless times already). However, your app does not declare WRITE in the manifest at all (on any Android version). If you dragged my AllFilesPermission extension into your project (Screen1), the WRITE permission on Android < 11 would have been declared in the Manifest. Then it would have worked on all Android versions < 11.

Note: It is not necessary to request storage permissions. These are automatically requested with the file component.

There are two ways to make your aia work (on all Android versions):

  1. Do what @Taifun suggested. However, the WRITE permission is then also requested on Android 11+ (which is of course nonsense, because firstly this permission is not necessary there and secondly it is no longer available on Android 11+.

  2. Use my MFile extension. This way no storage permissions are requested on Android 11+ (as it should be). Of course, you don't have to use AllFilesPermission ext. then, since the storage permission with the MFile extension is correctly declared in the Manifest.

Note: And use the correct path: /Download/... for this Shared folder.
(not /download/...).

2 Likes