calendar - Adding reminder to event fails in Android -
i have method adds reminder event, fails:
fatal exception: main android.database.sqlite.sqliteexception @ android.database.databaseutils.readexceptionfromparcel(databaseutils.java:184) @ android.database.databaseutils.readexceptionfromparcel(databaseutils.java:140) @ android.content.contentproviderproxy.insert(contentprovidernative.java:420) @ android.content.contentresolver.insert(contentresolver.java:864) @ de.appwege.droid.medwege.navigationdrawer.terminfragment.insertreminder(terminfragment.java:848)
the method in question:
public long insertreminder(long eventid, int minutes){ contentresolver cr = getactivity().getcontentresolver(); contentvalues values = new contentvalues(); values.put(calendarcontract.reminders.minutes, minutes); values.put(calendarcontract.reminders.event_id, eventid); values.put(calendarcontract.reminders.method, calendarcontract.reminders.method_alert); uri uri = cr.insert(calendarcontract.reminders.content_uri, values); return long.valueof(uri.getlastpathsegment()); }
what missing here? both eventid , minutes defined...
Comments
Post a Comment