Examples showing how to persist data via SharedPreferences and SQLite