have you check it after compiled apk? or checking it only in companion?
and one more thing, we cannot show txt file direct, we must have to read it with file component, or simply store your text to any variable and load that after screen initialize.
yes this one is working only for web viewer, in companion i can read from file with /Makeroid/Assets/filename.txt, but when it goes to compiled apk, txt files goes to “android_asset/” which is not accessible by files component.
what bug are you taking about?
if you want to read a file from the assets using the file component, you have to use two slashes // followed by the filename, see also the documentation Storage
ReadFrom( fileName )
Reads text from a file in storage. Prefix the filename with / to read from a specific file on the SD card. for instance /myFile.txt will read the file /sdcard/myFile.txt. To read assets packaged with an application (also works for the Companion) start the filename with // (two slashes). If a filename does not start with a slash, it will be read from the applications private storage (for packaged apps) and from /sdcard/AppInventor/data for the Companion.
Yes // works! Of course, Reading from the file did not work, but I was able to load the data using KIO4_TintDBX1. I tried using KIO4_GetTinyDB1, but there it didn’t work.
of course this should be possible and therefore is a bug…
and it should work with //text.txt in the companion app as well as the apk
now added in the bug list here Bugs in Kodular Eagle