Hello everybody, A month ago I started to make my own android app via processing. Now I’ve got the problem that I want to read some information’s about levels ( e.g. if they have been accomplished ) and the highscore from a csv file. I change the values of the cells in the csv with saveInt() and afterwards i save them with saveTable(). The Problem is , that if I type the loaded filename in the saveTable function, to save the changes witch I have made with saveInt , a new csv file is created in the sketch Folder instead of overwriting the existing file in the data directory. I tried to type data/ before the filename in saveTable(), which works perfectly in the normal java Mode. When i try to launch the Program in Android Mode, I get the following Exception:
FATAL EXCEPTION: Animation Thread Process: processing.test.gui_spiel2_ver_and_vers, PID: 6316 java.lang.IllegalArgumentException: File data/gamedata_2.csv contains a path separator
It seems like the saveTable function doesn´t accept paths in android mode.
Does someone know how to fix the Problem or a (hopefully simple) way to r/w and save the same csv file?
Hope some of you might help me :)
thank you!