It doesn't have any activity or service in frameworks/base/core/java/
android/os/Environment.java
Is it possible to get a program context from a static method in the
Environment class?
Or is there another way of getting access to the Settings provider
without a content resolver?

Thanks.

On 1月20日, 下午9時52分, Mark Murphy <[email protected]> wrote:
> Brian 1143 wrote:
> > Hi,
> > I want to access android.provider.Settings so I need a content
> > resolver.
>
> > Could anyone show me how to get a content resolver in frameworks/base/
> > core/java/android/os/Environment.java.
>
> Use Context#getContentResolver(). Your activity or service is your Context.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to