my game is about stories, you make choices and it will lead you to other screen like a novel in which you are the hero, I realised I need a save system, I want to save the last screen a player was on and load it when he click on load button in main menu :
I found the class FileHandle but I don't know how to link it with my gamescreens. How am I supposed to code "save the last screen the player is on" and "load the last screen the player was on"
Thanks for your knowledge sharing
You should have a look at the libGDX wiki.
Specifically:
File Handling
and
Preferences
If you only need to save the last page the user was on,
Preferencesmight be your best option. You can easily save primitive data types, such as the index of the last screen, or the title, or however you have your content set up.