How do you save a file ؟

I’m using Android 15 and I want to copy a file to the Downloads directory, but I haven’t been able to succeed.

I have already reviewed the official documentation as well as several related questions from other users regarding transferring files to external storage, but none of the suggested solutions worked in my case.

Could someone please guide me on how to properly copy a file to the Downloads directory in Android 15?

Thanks in advance
001


export_csv_01.aia (29.4 KB)

First question, do you want to save this:

image

which would be a stringified json array (list)

or this:

image

which would be csv formatted data

?

Secondly, on Android 15 WriteExternalStroage is no longer accepted / usable

Thirdly using // is incorrect. Double slashes are generally used to point to files in your assets (media folder)

Personally, I would use SAF, you cannot easily use the Download folder, so save to Documents instead:

image

1 Like

I need to transfer all the data from a table to an Excel file. However, I couldn't find a proper way to do this in Android 15.

It seems unreasonable that transferring data in Android 15 is not straightforward. Please guide me on the correct approach or best way to save table data to an Excel file in the latest versions of Android?

Linking to Excel is not straightforward with Appinventor.

You could upload the data directly to a Google Sheet, though. (or create a google sheet with the data)

2 Likes

I would use the spreadsheet component to upload the data to a Google sheet

2 Likes

Use file scope Legacy and the correct path, which is /Download without s

/Download/abcd/whatever txt

Taifun

1 Like

Thanks
With your help, the problem was solved.
:heart: