AppInventor: Import data from csv file into a list

user1518793 picture user1518793 · Aug 28, 2012 · Viewed 14.6k times · Source

I am developing an android application..i want to import data from csv file into a list in appinventor..1 method is to upload that csv file online and then extract data from it..is there a way by which i can keep that csv file in sd card and get data from it? If I upload that csv file and then extract data from it, then what is the shortest and simplest way??Any examples??

Answer

Taifun picture Taifun · Aug 28, 2012

Normally this is not possible with App Inventor, but there is a trick to read a text file from SD card: you can use App Inventor together with embedded HTML/JavaScript, see an example here: http://puravidaapps.com/read.php

Meanwhile I prepared another example which imports a multiline csv file stored as asset in App Inventor on first run of the app and stores it as list of lists in TinyDB. Please find it here: http://puravidaapps.com/importCSV.php