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日
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.
--
2 matches
Mail list logo