You can store preferences as sharedPreferences.edit().putInt(..).commit() (as an example); And then get t ...
stackoverflow.com