Thanks, you solved my problem, again.

On Jul 9, 7:40 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Fri, Jul 9, 2010 at 5:03 AM, Jeruliu <jeru....@gmail.com> wrote:
> > Thanks, actually i need to access the shared preference in a class
> > that extends from BroadcastReceiver, how can i call the context then?
>
> PreferenceManager.getDefaultSharedPreferences(), passing in the
> Context supplied to you in onReceive() of your BroadcastReceiver.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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

Reply via email to