0

from: this answer, It provide a very short example about how to read/write array to/from sharedpreference. However, with a very low knowledge about that, I am very confused about the variable that are in those codes. CMIIW..

  • myScores refers to sharedpreference?
  • listOfExistingScores refers to what? ArrayList? or something else?
  • scoreEditor refers to ArrayList? or ListView? or custom ListView?

Please humbly excuse my lack of knowledge..

CuriousNewbie
  • 311
  • 3
  • 11

1 Answers1

0

According to that answser you can say that those three variable defines following things :

myScores :

As you said in op, it's shared preference variable. It holdes sharedpreference.

listOfExistingScores :

It refers to the array declared by user. It is stored in hashset.

scoreEditor :

Score editor is sharedpreferences editor. You can read more details about it by given link.

Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
Ashish
  • 6,494
  • 3
  • 21
  • 42