How can getContentResolver() be called in Android?

前端 未结 8 1232
庸人自扰
庸人自扰 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条回答
  •  萌比男神i
    2020-12-02 16:59

    You can use like this:

    getApplicationContext().getContentResolver()
    

    with the proper context.

提交回复
热议问题