Hi I would like to import a cvs file from the / Documents folder but I tried with file1 but from error 2101 I tried with the mfile extension but it does not read the file.
How can I do?
Thank you
RAMDO
(Dark Prince)
October 17, 2022, 12:17pm
#4
Does not require a full path
1 Like
Hi RAMDO Thank you for your answer
unfortunately the got text function still does not read in files and does not even activate.
The value of Label1.Text is always null
RAMDO
(Dark Prince)
October 18, 2022, 10:47am
#6
Use the extension
Introduction
EFile is a modified version of original File component.The only difference between File component and the extension is that the extension does not asks for write permission if you want to write to Application Specific Directory and read permission if you want to read from Application Specific Directory or Assets.
Latest Version: 4
Released: 2020-06-10T18:30:00Z (UTC)
Last Updated: 2021-06-22T18:30:00Z (UTC)
Blocks
[image]
[image]
Documentation
After File Saved
Event ind…
Read this, it may help you
No, the EFile extension cannot save / read to / from the Private dir, neither with Companion nor with the APK.
Both yellow marked blocks save in the same dir (→ ASD).
Only the File component can save / read to / from the Private dir:
/data/user/0/io.makeroid.companion/files/test2.txt
But for File component (mistakenly) WRITE_/READ_EXTERNAL permissions are required.
See also here:
The extension developer (vknow360) is aware of this because I pointed it out to him.
He told me, that he …
Hi RAMDO
…the value of Label2.text is always null…
1 Like
Taifun
October 18, 2022, 12:58pm
#9
If the csv file was not created by your own app, then you have to use SAF to read it
See also
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>/
1.2. The Private directory is
/data/user/0/<packageName>/files/
This private directory can be used with the File component to save / read text (setting the path without a slash). It can only be accessed by your app and is automatically removed when the app is un…
1.Introduction
Description: Basically AI2 wrapper of Storage Access Framework. Using this extension, you can get read and/or write access to a single document or tree document (and all of its children recursively).
Latest Version: 1.1
Released: 2021-09-16T18:30:00Z (UTC)
Last Updated: 2021-11-01T18:30:00Z (UTC)
2.Blocks
[image]
[image]
[image]
[image]
[image]
[image]
[image]
3.Documentation
Docs for: SAF
Events
DocumentCreatedEvent invoked after creating document.Returns…
Taifun
1 Like
RAMDO
(Dark Prince)
October 18, 2022, 1:16pm
#10
Do you have a txt or csv file?
Make sure you write the file name literally
file type cvs but i also tried with a normal file with .txt extension
If you want to try it create a file in the documents folder and try to read it
1 Like
RAMDO
(Dark Prince)
October 18, 2022, 2:28pm
#12
It works fine for me
Verify that a file exists
Hi RAMDO
for now i have solved it with SAF as suggested by taifun. But later I try to understand why efile doesn’t work for me.
Thank you so much
RAMDO
(Dark Prince)
October 18, 2022, 2:38pm
#14
What is your Android version?
For me
Android version 8
Hi
How do I save a file inside / storage / emulated / 0 / Documents.
I tried like this but it does not save and does not give error
Thx
vknow360
(Sunny Gupta)
October 19, 2022, 1:21pm
#19
Please read the thread to learn about its usage:
1.Introduction Description: Basically AI2 wrapper of Storage Access Framework. Using this extension, you can get read and/or write access to a single document or tree document (and all of its children recursively). Latest Version: 1.1 Released:...
Reading time: 25 mins 🕑
Likes: 446 ❤
Hello
I’ve read 1000 times but haven’t found the solution.
I need to export tinydb to csv table and save files to shared documents folder
I tried to do this but it doesn’t work
does not save
Taifun
October 19, 2022, 7:03pm
#21
You forgot to provide a screenshot of your relevant blocks
Taifun