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
//create activity object to get activity from Activity class for use to content resolver
private final Activity ActivityObj;
//create constructor with ActivityObj to get activity from Activity class
public RecyclerViewAdapterClass(Activity activityObj) {
this.ActivityObj = activityObj;
}
ActivityObj.getContentResolver(),.....,.....,null);
Access contentResolver in Kotlin , inside activities, Object classes &... :
Application().contentResolver