Reading Files with double and single slashes

On devices with Android ≥ 10 this path (fileName) (/Coviddata.txt or /Coviddata.csv) points to the ASD (app-specific directory):

/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/Coviddata.csv

On Android < 10 this path points to (the root directory of the external storage):

/storage/emulated/0/Coviddata.csv

In other words: Since targetSdkVersion = 29 (AI2 update nb184) it is no longer possible to access the external storage outside of the ASD on devices with Android ≥ 10 (API ≥ 29).

See also here:

Nevertheless, WRITE / READ permissions are requested from the File component, even if a file is saved in the ASD and is to be read from it. This is a bug. @ewpatton
That can currently only be bypassed with the EFile extension from @vknow360. See also here:

1 Like