FileList of taifun's File Extension doesn't work

Hi,

I know "Scope" is already introduced to the "File" component in the new version of AI2, and I am now modifying my project to cope with it. I have been using taifun's FileList from his File Extension for a long time. It is an excellent extension. I just downloaded and installed the latest version, and found that the FileList function doesn't work. It always gives me an empty list even I have files (e.g. "mp3") in the directories (e.g. "Music"). I am not sure if it is a bug or there is something I might have missed, so I created the following small program for testing:

file_listing_test.aia (34.2 KB)

Is there anybody who can help to solve this problem, and thanks in advance.

Truly,
Anthony Chow

1 Like

Hi Anke,

I just tested your version, and found out that the way to make FileList work as before is to asked for WRITE_EXTERNAL_STORAGE permission which I had cancelled for the new version of AI2. Anyway, it works pretty good now. Thanks very much.

Truly,
Anthony

No, READ_EXTERNAL_STORAGE permission is requested.

Hi Anke,

Just changed from WRITE to READ, works perfect. Thanks.

Anthony

Hi Anke,

It is just a report to the AI2 Team, and isn't asking for help.

I just finished updating my project to cope with the "Scope" property of the "File" Component. The new apk installation works fine, and I can create, modify and delete all my internal private files without any problem just by using "App" as scope. I still have an old version on my phone (android 10), and have quite a lot of important files inside. But after I upgraded this old version with the same apk, I couldn't read all the private files unless I changed the file scope to "Legacy". This won't cause me too much trouble as there is a function in my app to transfer files by e-mail.

Anyway, thanks a lot.

Anthony

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.