title: Use GetContentResolver in a service while no activity is running
body: <p>I need a content resolver to set an event in calendar using a service running in background while i do not have any activity of my app open so i can't get any context or activity object we need to use GetContentresolver kindly guide me what can be done here thanks.</p>