日历应用程序是否需要使用日历提供程序?

Is it required for a Calendar app to use Calendar Provider?

我正在开发一个应用程序,用户可以在其中创建事件(如日历应用程序)、任务(如待办事项应用程序)或习惯(如习惯跟踪应用程序)。我的问题是:我的应用程序是否需要将用户创建的事件存储在 Calendar Provider 中,如果是这样,那么任务和习惯呢?我是否也将它们存储在日历提供程序中?

Is it required for my app to store the events that the user creates in the Calendar Provider

没有。这是一个选项,但如果您愿意,可以将事件存储在自己的数据库中。或者,如果您愿意,您可以让用户选择是针对整个应用程序还是基于每个事件。

if so, then what about tasks and habits? Do I also store them in the Calendar Provider?

CalendarProvider 仅适用于日历条目。我的猜测是 "tasks and habits" 不是日历条目,因此它们会进入您自己的数据库。