Android Question APK should iclude CSV-File

ST500

Active Member
Licensed User
Hello,

I created a CSV-File (it includess some data), that should be extracted during the installation of the app.
How can I make it, the CSV-File is a part of the APK-File?

Thanks a lot.
 

ronell

Well-Known Member
Licensed User
Longtime User
put the csv file in assets then copy it to a file directory at the start of activity
B4X:
    If File.Exists(File.DirDefaultExternal, "file.csv") Then
        
    Else
        File.Copy(File.DirAssets,"file.csv",File.DirDefaultExternal,"file.csv"
    End If
 
Upvote 0
Top