getting context before calling getContentResolver()