On Tue, Mar 1, 2011 at 10:17 AM, dashman <[email protected]> wrote:

> I need to get the context primarily for prefs for my apps
>

It really shouldn't matter for this, but generally stick with the "most
local" context - usually "this". If you can call the other two functions,
you already have a Context, so use that.


> - there are multiple Activities but i'd like to reference the same common
> prefs for my app.
>

This doesn't have anything to do with the Context.
http://developer.android.com/reference/android/preference/PreferenceManager.html#getDefaultSharedPreferences(android.content.Context)

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to