Ok, I'll look at that. I called it when the application starts and stuck it in a static class for now. Thanks, I'll look at passing it.
Thanks -----Original Message----- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor Sent: Tuesday, July 26, 2011 10:51 AM To: Discussions related to Mono for Android Subject: Re: [mono-android] ID On Jul 26, 2011, at 10:35 AM, Tim Kelly wrote: > And what if I'm outside these, which seems to be my issue. I have the > Activity call a service class which starts a background tread. In this > background I'm calling another class to populate properties and > ContentResolver gives me an error 'Android.Content.ContentResolver' is a > 'type' but is used like a 'variable' You need to pass your Activity/etc. (some Context instance) to your background thread so that it can use the instance Context.ContentResolver property. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid