You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: OpenTasks Provider is now a module inside the OpenTasks repository. This separate repoistory is no longer maintained.
opentasks-provider
An open source task provider for Android
This is a task provider for Android. It supports multiple accounts and multiple lists per account. It aims to fully support RFC 5545 VTODO as well as other task models.
This is a library project to be bundled with a task app. To use it include the following into your AndroidManifest
<manifestxmlns:android="https://schemas.android.com/apk/res/android"package="your.package"android:versionCode="1"android:versionName="1.0" >
...
<permissionandroid:name="your.package.permission.READ_TASKS"android:description="@string/permission_description_read_tasks"android:label="@string/permission_read_tasks"android:permissionGroup="android.permission-group.PERSONAL_INFO"android:protectionLevel="dangerous" >
</permission>
<permissionandroid:name="your.package.permission.WRITE_TASKS"android:description="@string/permission_description_write_tasks"android:label="@string/permission_write_tasks"android:permissionGroup="android.permission-group.PERSONAL_INFO"android:protectionLevel="dangerous" >
</permission>
<uses-permissionandroid:name="your.package.permission.READ_TASKS" />
<uses-permissionandroid:name="your.package.permission.WRITE_TASKS" />
<uses-permissionandroid:name="android.permission.GET_ACCOUNTS" />
<uses-permissionandroid:name="com.android.alarm.permission.SET_ALARM" />
<applicationandroid:icon="@drawable/ic_launcher"android:label="@string/app_name"android:theme="@style/AppTheme" >
<providerandroid:name="org.dmfs.provider.tasks.TaskProvider"android:authorities="your.package.tasks"android:label="@string/provider_label"android:multiprocess="false"android:readPermission="your.package.permission.READ_TASKS"android:writePermission="your.packagel.permission.WRITE_TASKS" />
<!-- This receives alarms that are fired when a task starts. It fires the actual due notification broadcast. -->
<receiverandroid:name="org.dmfs.provider.tasks.broadcast.StartAlarmBroadcastHandler" >
<intent-filter>
<actionandroid:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<intent-filter>
<actionandroid:name="org.dmfs.android.tasks.TASK_START" />
</intent-filter>
<intent-filter>
<actionandroid:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
<!-- This receives alarms that are fired when a task is due. It fires the actual due notification broadcast. -->
<receiverandroid:name="org.dmfs.provider.tasks.broadcast.DueAlarmBroadcastHandler" >
<intent-filter>
<actionandroid:name="org.dmfs.android.tasks.TASK_DUE" />
</intent-filter>
<intent-filter>
<actionandroid:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<intent-filter>
<actionandroid:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
<!-- Receiver that updates notifications when the time on the device has been changed -->
<receiverandroid:name="org.dmfs.provider.tasks.broadcast.TimeChangeBroadcastReceiver"android:label="@string/app_name" >
<intent-filter>
<actionandroid:name="android.intent.action.TIME_SET" />
</intent-filter>
</receiver>
</application>
</manifest>
TODO:
add support for recurrence
add support for extended attributes like alarms, attendees and categories
License
Copyright (c) Marten Gajda 2015, licensed under Apache2.