Basic custom widget to display tasks from calendar
Posted: 20 Feb 2016 19:28
This is a very basic custom widget that displays tasks from the stock calendar app on my Samsung S5 with Lollipop 5.1.1.
I could not find any widget that displayed tasks (while there are plenty of widgets that display appointments). It seems that tasks are not exposed in any content provider, so they are harder to get to, and it requires root.
This is how the widget looks: PREREQUISITES:
Rooted device
sqlite3 - I copied the version that comes with Titanium Backup (/data/data/com.keramidas.TitaniumBackup/files) to the /system/xbin folder and made it executable.
I am not sure whether the calendar app is Samsung specific. I also read that the app was changed between different Android versions. This version of the app came with 5.1.1 Lollipop and contains both appointments and tasks, and both can be synced from Outlook on a PC with the appropriate software (e.g. AkrutoSync).
INSTRUCTIONS:
Install both the flow and the widget, adjust settings as desired, and activate flow.
The flow has an activity "TasksCW Flow Settings" that allows you to adjust a couple of settings conveniently.
NOTES:
The screenshot shows a little refresh icon in the top right corner of the widget. This icon is not included in this post as I don't own the copyright to it. It is also not essential. It is just a reminder for me that touching the heading area of the widget refreshes the displayed tasks. Touching the task list opens the calendar app.
I could not find any widget that displayed tasks (while there are plenty of widgets that display appointments). It seems that tasks are not exposed in any content provider, so they are harder to get to, and it requires root.
This is how the widget looks: PREREQUISITES:
Rooted device
sqlite3 - I copied the version that comes with Titanium Backup (/data/data/com.keramidas.TitaniumBackup/files) to the /system/xbin folder and made it executable.
I am not sure whether the calendar app is Samsung specific. I also read that the app was changed between different Android versions. This version of the app came with 5.1.1 Lollipop and contains both appointments and tasks, and both can be synced from Outlook on a PC with the appropriate software (e.g. AkrutoSync).
INSTRUCTIONS:
Install both the flow and the widget, adjust settings as desired, and activate flow.
The flow has an activity "TasksCW Flow Settings" that allows you to adjust a couple of settings conveniently.
NOTES:
The screenshot shows a little refresh icon in the top right corner of the widget. This icon is not included in this post as I don't own the copyright to it. It is also not essential. It is just a reminder for me that touching the heading area of the widget refreshes the displayed tasks. Touching the task list opens the calendar app.