Saving and Loading .txt files (ANDROID)

@F53 ===

  • yes for saving something like a score the best way is SharedPreferences

  • have you imported Context and created an instance of it? If yes how have you done that???

  • you are in fragment, dont forget!

  • the files created (at the end) by P5 are put in the assets folder (or some of its subfolder) - They can be opened but not modified and you cannot use this folder directly ( you cannot get a file from it and its path)- When you open you are using getAssets();