Using Shared Preference to store values instead of intent