Hi,
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 myFunc() of class B whcih is not an activity.
So, in class B I have to use getContentResolver(). I directly called getContentResolver(). It was showing error. Then I called myFunc(Acitivy act) from the activity and called act.getContentResolver() which solved my problem. My question is is this the only way to call getContentResolver(), which means it can be used in context with activity or can be used alone.
I will be waiting for reply.
Thanks in Advance,