Android Question how to save csv excel file on android phone

Eugene Puah

New Member
Licensed User
i'm creating an application on B4A that using csv excel file. i do not know how to save the file on android phone. im used LoadTableFromCSV(File.DirAssets, "citylist.csv", True) to save the file but still not working. do you think phone settings can affect the process of csv file saving..can you help me to solve this problem because i.m new with this software..

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
im used LoadTableFromCSV(File.DirAssets, "citylist.csv", True) to save the file but still not working
How are you expecting LoadTableFromCSV will save something? It loads a CSV and creates a html-Table from it´s content.
A CSV is a Textfile. You can create it with the File Methods. Or with StringUtils
B4X:
su.SaveCSV2(File.DirInternal, "1.csv", ",", data, Array("Column 1", "Column 2", "Column 3"))
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…