How can getContentResolver() be called in Android?

前端 未结 8 1218
庸人自扰
庸人自扰 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:19

    getContentResolver() is method of class android.content.Context, so to call it you definitely need an instance of Context ( Activity or Service for example).

提交回复
热议问题