example code for SharedPreference.
example code for File Input.