Example of using shared Preferences in Android Development