The stock calendar app on a Galaxy S5 on Android 5.1.1 allows syncing of Outlook tasks to the calendar (via Exchange service). It also displays the tasks within the app, including due dates and reminders.
Is there any way to access these tasks from Automagic?
I believe that the content provider for calendar entries does not provide access to the tasks. I have not tried that myself. I assume it because I have not found any widgets that display these tasks and one widget developer stated explicitly that he doesn't have access to them.
Any idea how I might be able to get to them (for displaying them on a widget)?
Thanks!
Access tasks
Moderator: Martin
Re: Access tasks
Hi,
I'm not sure how the exchange events are stored since I don't have an exchange server available for tests.
Please create a new flow, add a condition Calendar Event, activate the checkbox of field Calendars and see if the Exchange calendars are listed whe pressing the [...]-button.
You can also use action Query Content Provider to get the calendar events. The usage of this action is a bit technical but there are some examples available within the action.
Regards,
Martin
I'm not sure how the exchange events are stored since I don't have an exchange server available for tests.
Please create a new flow, add a condition Calendar Event, activate the checkbox of field Calendars and see if the Exchange calendars are listed whe pressing the [...]-button.
You can also use action Query Content Provider to get the calendar events. The usage of this action is a bit technical but there are some examples available within the action.
Regards,
Martin
Re: Access tasks
I am using the stock calendar app on the S5 which supports this, and the tasks are stored in the same sqlite database as the appointments, in a table appropriately named Tasks.
I am able to look at the table structure and content with a tool.
But it seems there is no content provider for tasks, at least it is not documented, and when I try to guess one (using Query Content Provider) based on calendar event syntax I get an error. So I guess this is not a viable option.
Is it correct that the root command "content query --uri..." also just accesses content providers?
If that's the case I guess the only other option would be to use sqlite directly. If I do that, (I assume with Execute Root Command: sqlite3...) how do I get the result of the query into my AM flow so that I can continue to process it, ideally in a format that is easy to work with?
The result of the query would be a handful of columns for multiple rows.
Thanks!
I am able to look at the table structure and content with a tool.
But it seems there is no content provider for tasks, at least it is not documented, and when I try to guess one (using Query Content Provider) based on calendar event syntax I get an error. So I guess this is not a viable option.
Is it correct that the root command "content query --uri..." also just accesses content providers?
If that's the case I guess the only other option would be to use sqlite directly. If I do that, (I assume with Execute Root Command: sqlite3...) how do I get the result of the query into my AM flow so that I can continue to process it, ideally in a format that is easy to work with?
The result of the query would be a handful of columns for multiple rows.
Thanks!
Re: Access tasks
I got the sqlite query working and got the data in the stdout variable.
I'm impressed with Automagic!
I'm impressed with Automagic!