File / dir exists - permission bug with the File component

Check this out, build the APK and try on all Android versions (Android 11+ and Android < 11):
FileDirExists.aia (60.3 KB)

Copy the text file (abc.txt) to the Shared folder /Documents beforehand:
abc.txt (3 Bytes)

Button1 & Button2 should work without READ permission and the labels (1-4) should return "true".

However, clicking on Button3 request READ permission, that must be granted and then click again on Button3 (because I didn't add the permissionGranted event). Only then do labels 5 & 6 return "true".

2 Likes