Getting started with the Astrid API

824 views
Skip to first unread message

Christian Kaltepoth

unread,
Dec 7, 2011, 1:52:56 PM12/7/11
to Astrid Power Users
Hey all,

I'm thinking about developing a simple plugin for the Astrid Android
application. The basic idea is to create a widget that displays tasks
that have been assigned to certain lists in a special manner.

Now to my question. What is the recommended way to obtain a lists of
tasks out of Astrid? Does it provide such an API? Does anyone have
experience with it? Are there any examples or documentation? Any hints
for me on how to get started?

Thank you very much.

Christian

Tim Su

unread,
Dec 22, 2011, 11:43:27 PM12/22/11
to astrid...@googlegroups.com, Christian Kaltepoth
Hey Christian,

There are two ways to use the Astrid content provider api.

#1 - import astridApi project (from the astrid github repo). Create a new project that depends on it. This way, you can use Astrid's Task and Metadata models to read tasks and lists, in the same way the Astrid code does.

#2 - read from the Astrid content provider directly.

As far as examples and documentation, the unit tests are a good place to start in terms of using the API. Try the TaskDaoTests.

API javadoc is here: http://todoroo.github.com/astrid/  we currently don't have an automated build script for those, but I just built them today.

Tim
--

"Make the most of every chance you get. These are desperate times! Don't live carelessly, unthinkingly. Make sure you understand what the Master wants." - Eph 5

Tim Su
Lead Software Engineer | Creator of Astrid!
Astrid, Inc

Get Astrid for Android and iOS!


    
Reply all
Reply to author
Forward
0 new messages