How can getContentResolver() be called in Android?

前端 未结 8 1220
庸人自扰
庸人自扰 2020-12-02 16:58

I want to know the context in which getContentResolver() is called?

I have a scenario like this:
I have an activity A that calls a method myFu

8条回答
  •  渐次进展
    2020-12-02 17:21

    import android.content.Context;
    import android.content.ContentResolver;
    
    context = (Context)this;
    ContentResolver result = (ContentResolver)context.getContentResolver();
    

提交回复
热议问题