views:

11

answers:

1

In the class PersistentState.java the prefs variable gets the saved/typed text from prior sessions here, on line 106 into restoredText. Where does the getString method get the saved/typed text?

protected void onResume() {
    super.onResume();
...

    SharedPreferences prefs = getPreferences(0); 
    String restoredText = prefs.getString("text", null);
A: 

it will be a prefs file in the data directory

something like

/data/com.birthdroid/default.prefs
Pentium10