[android-beginners] Re: How to get a Content Resolver in static methods?

2009-01-20 Thread Brian 1143
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日

[android-beginners] Re: How to get a Content Resolver in static methods?

2009-01-20 Thread Mark Murphy
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. --