AppInventor:从CSV文件导入数据到一个列表 [英] AppInventor: Import data from csv file into a list
问题描述
我开发一个Android的application..i想从CSV文件中的数据导入到在appinventor..1方法列表是在网上上传CSV文件,然后提取it..is数据有没有办法通过它我可以保持该CSV文件的SD卡,并从它那里得到的数据?如果我上传CSV文件,然后从中提取数据,那么什么是最短,最简单的方法??任何例子?
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??
推荐答案
通常情况下,这是不可能与App Inventor中,但有一招读取SD卡中的文本文件:您可以使用应用发明,以及嵌入式HTML / JavaScript的,看一个例子在这里: http://puravidaapps.com/read.php
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
同时我prepared另一个例子进口作为资产存储在应用发明多行csv文件上的应用程序,并将其存储在TinyDB名单列表的第一次运行。请它在这里找到: http://puravidaapps.com/importCSV.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
这篇关于AppInventor:从CSV文件导入数据到一个列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!