one line of code
No, that's not going to happen. But if you just have simple data and not much of it then you can use SharedPreferences
There is a good, basic example of using SharedPreferences
here in the docs
But if you are going to be storing a lot of data for a game then you probably want to implement an SQLite DB
See Storage Options for what will work best for you.