TIMAI2
June 30, 2024, 2:38pm
22
My guess is that if both files are placed in your ASD, you will be able to open both of them.
Looks like you need to use SAF, if you want to use /Documents
with files not created/owned by the app.
The filePicker will get the content uri for the files, but you need to use the SAF extension (or some other SAF method) to open them.
App generate csv file using this block
and i want user to reuse it or open any csv file in his phone
TIMAI2
June 30, 2024, 3:10pm
24
Do your blocks work ?
(If not, it may be better to use Legacy
instead of Shared
....)
Taifun
June 30, 2024, 3:19pm
25
if you store the file with your own app, then later you can access it again easily
however it you stored it with another app, then you need SAF...
everyting is explained here
From an Android point of view there are an → Internal Storage and an → External Storage .
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
/data/data/<packageName>/
In order to be able to debug your app, AI2 saves the assets for → Companion on devices with
Android ≥ 10 (API ≥ 29):
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/
Android < 10 :
/storage/emulated/0/Android/data/edu.mit.a…
Taifun
Yes it work and i can export csv without problems
Taifun
June 30, 2024, 3:25pm
27
As you are storing the csv files in your ASD, you also could use the FileList method from the file extension to get a list of your stored files and pick one of them without having to copy them to shared storage...
Taifun
I am try to use SAF Extension
I can select the csv file but how i can use the entire text
Finally this method runs without any problems .. up to now
system
Closed
July 7, 2024, 7:03pm
31
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.