jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.8k stars 497 forks source link

Incompatible API use in your codes. #860

Closed jay2013 closed 6 years ago

jay2013 commented 6 years ago

We notice that you use API "<android.provider.CalendarContract$Calendars: android.net.Uri CONTENT_URI>" in method "<com.zegoggles.smssync.calendar.CalendarAccessorPost40: boolean enableSync(long)>" on line 35 not exist in SDK level [9, 10 , 11, 12, 13]. This may cause problems to your APP when it was run on these platforms.

please help to check it. Thanks very much.

other similar bugs: BUG: <android.provider.CalendarContract$Calendars: android.net.Uri CONTENT_URI> called in <com.zegoggles.smssync.calendar.CalendarAccessorPost40: java.util.Map getCalendars()> on line 72 not in [9, 10 , 11, 12, 13]

BUG: <android.provider.CalendarContract$Events: android.net.Uri CONTENT_URI> called in <com.zegoggles.smssync.calendar.CalendarAccessorPost40: boolean addEntry(long,java.util.Date,int,java.lang.String,java.lang.String)> on line 58 not in [9, 10 , 11, 12, 13]

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

Please specify the following:

jberkel commented 6 years ago

That's why it's called CalendarAccessorPost40, duh.

jay2013 commented 6 years ago

Sorry for disturbing you.