2014년 12월 8일 월요일

Help on .aia project

how can i execute this step?

- export my appinventor 2 app on my computer
- extract the .aia file
- insert into the .aia files a .txt file
- package again the aia files
- import the project on the appinventor website workspace
- tell to file component where to read the .txt file i put

I'm able to do only the first 3 step, then i'm lost...



Don't go through all of that trouble...

Just add the text file as media, and then use it in your project...



as Enis said

- tell to file component where to read the .txt file i put


ReadFrom(text 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.




Thank you both..... The solution was to add the txt as media and then use the double " // " to call it!


댓글 없음:

댓글 쓰기