Shared preferences from other activity to be call with button
问题 I'm a beginner trying to understand sharedpreferences . Everything is going smoothly as my program of shared preferences run as I want it to be . My inputs are in activity 1 and using shared preferences, I call them back in activity 2. But how can I call the inputs from activity 1 to activity 3 using shared preferences by just using a button from activity 2? 回答1: Store sharedpreference to Constant class and use static variables than set and get values from that class anytime you want. Setting