Here\'s a standard task: store some values in the application\'s shared preferences in order to be able to retrieve it later on. But one will discover that there are 3 funct
It depends. #1 Will return the SharedPreferences for whichever Context you pass it. #2 Will return the SharedPreferences for the context of the Activity you're in. This may be the same as #1 or it might not. #3 Will let you break your SharedPreferences up into different groups and name them. This might be a nice way to break things up but I have never actually done it.