I wish to store several instances of a simple class as part of saving my apps state when the activity is not in focus.
public class Player
{
int score1;
int score2;
int total;
}
I've been told parceling is the way to go. What advantages does this hold over saving the variables individually using the method below?
savedInstanceState.putInt(player.getScore1);
Edit: I will likely store up to 50 instances of each of these classes and eventually increase the number of variables in them to 12.
Serialization springs to mind but everywhere I turn I'm told it is a slow inefficient method of storage and even that the android documentation advises to avoid it.