Tnn

unread,
Sep 1, 2016, 10:11:57 AM9/1/16
to MIT App Inventor Forum
Hi,

I have an app on a Samsung tablet with Tab3 S.O Android Ver. 4.4.4.

I want to know the folder where the TinyDB component saves files, thanks.

Taifun

unread,
Sep 1, 2016, 10:56:15 AM9/1/16
to MIT App Inventor Forum
TinyDB is an xml file and that file is accessible only on rooted phones
see also http://stackoverflow.com/a/6146207/1545993
why do you want to access that file?
Taifun


Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Tnn

unread,
Sep 2, 2016, 2:41:00 AM9/2/16
to MIT App Inventor Forum
thanks for your answer...

I would like to prepare the file using a PC and store them on your tablet.

Start my App and manage files with TinyDB ...

It would be correct and possible?

Taifun

unread,
Sep 2, 2016, 8:53:03 AM9/2/16
to MIT App Inventor Forum
that's not possible
prepare a file in csv format and read that file on first run of the app using the file component and convert it into a list of lists using the list from csv table block 
you can find several examples after doing a search in the forum

see also

Tnn

unread,
Sep 5, 2016, 4:19:15 AM9/5/16
to MIT App Inventor Forum
Good solution to use the CSV file ...

However, I have an error when I want to display a field of a row in the list ... why?

(see attachments)



Abraham Getzler

unread,
Sep 5, 2016, 10:11:22 AM9/5/16
to MIT App Inventor Forum
Your csv text file is not a csv text.

The C in CSV stands for Comma (,).

You used semicolons (;) in your text file contents, instead.

So you have two possible fixes:
  1. Generate the text file with commas instead of semicolons, or
  2. Replace all the semicolons with commas BEFORE feeding the csv table conversion block.

(This is the second post in half an hour I have seen where people toss garbage into their poor suffering csv table conversion block mouths.)

A csv table is a list of lists.  If you want to select fields from the table, use nested select-item blocks.
Do not run rows thru text manipulation blocks, or they will flatten them like a steam roller into text, losing their list capabilities.

ABG

Reply all
Reply to author
Forward
0 new messages