What is the difference between these two:
SharedPreferences prefs = getDefaultSharedPreferences(Application context);
and
SharedPreferences prefs = getDefaultSharedPreferences(Activity context);
I am confused which one to use ?i want to make prefs static so that i can use it everywhere in my app.is it ok?