Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Getting compile error on ContentResolver.Insert() for creating event on Android platform

$
0
0

I am now trying to create an event for Android platform. I am using Xamarin Forms but writing platform specific code for creating event on Android.
I went through the docs http://developer.xamarin.com/guides/android/user_interface/calendar/

but I am getting the error "An object reference is required for the non-static field, method or property ... " for the following line.

ContentResolver.Insert(CalendarContract.Events.ContentUri, eventValues);

Any help will be greatly appreciated


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>