files accross activity

Cor

Active Member
Licensed User
Longtime User
How to load files and use across activities?


first activity

B4X:
process_globals
Dim chordDataList As List
chordDataList=File.readlist(File.DirAssets,"sgcfinder.dat")

second activity will give no error during running and compiling
but does nothing

B4X:
GetChordName(main.chordDataList,construct)

How to solve this without loading the file in every activity

grCor
 

Cor

Active Member
Licensed User
Longtime User
list is empty when showing with toastshowmessage on second activity

no fault message when compiling

grCor
 
Top