Added SharedPreferences sample.