Hello all,

i'm trying to add a new record to the calendar_alert table..just as is
done when creating a new event with alarm or snoozing a event.

        values = new ContentValues();
        values.put( "event_id", 4 );
        values.put( "begin", beginTime);
        values.put( "end", endTime);
        values.put( "alarmTime", System.currentTimeMillis()+30*1000 );
        values.put( "state", 0 );
        values.put( "minutes", 1 );
        cr.insert( Uri.parse( "content://calendar/calendar_alerts" ),
values );

but that gives a error :
04-07 23:14:20.383: ERROR/DatabaseUtils(347): Error inserting state=0
event_id=4 minutes=13 end=1270679318000 alarmTime=1270682058609
begin=1270679307000 into table  CalendarAlerts

thanks..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to