android - Add Events programatically into calender it worked good but now code give Sqlite Exception -



android - Add Events programatically into calender it worked good but now code give Sqlite Exception -

working @ calender adding events programatically worked code give error info pass through method addevents, when check calender event not appear there

this error appears:

06-20 16:29:25.137: e/databaseutils(20244): error inserting calendar_id=2 title=rfihcd dtstart=1403866800000 dtend=1403869500000 _id=23 organizer=jsmith16420@gmail.com dirty=1 lastdate=1403869500000 eventtimezone=asia/karachi table events 06-20 16:29:25.137: e/databaseutils(20244): android.database.sqlite.sqliteconstraintexception: primary key must unique (code 19) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.sqlite.sqliteconnection.nativeexecuteforlastinsertedrowid(native method) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.sqlite.sqliteconnection.executeforlastinsertedrowid(sqliteconnection.java:775) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.sqlite.sqlitesession.executeforlastinsertedrowid(sqlitesession.java:788) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.sqlite.sqlitestatement.executeinsert(sqlitestatement.java:86) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.databaseutils$inserthelper.insertinternal(databaseutils.java:1102) 06-20 16:29:25.137: e/databaseutils(20244): @ android.database.databaseutils$inserthelper.insert(databaseutils.java:1227) 06-20 16:29:25.137: e/databaseutils(20244): @ com.android.providers.calendar.calendardatabasehelper.eventsinsert(calendardatabasehelper.java:271) 06-20 16:29:25.137: e/databaseutils(20244): @ com.android.providers.calendar.calendarprovider2.insertintransaction(calendarprovider2.java:2174) 06-20 16:29:25.137: e/databaseutils(20244): @ com.android.providers.calendar.sqlitecontentprovider.insert(sqlitecontentprovider.java:96) 06-20 16:29:25.137: e/databaseutils(20244): @ android.content.contentprovider$transport.insert(contentprovider.java:201) 06-20 16:29:25.137: e/databaseutils(20244): @ android.content.contentprovidernative.ontransact(contentprovidernative.java:148) 06-20 16:29:25.137: e/databaseutils(20244): @ android.os.binder.exectransact(binder.java:351) 06-20 16:29:25.137: e/databaseutils(20244): @ dalvik.system.nativestart.run(native method)

android calendar

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -