Need help with query Calendar,Notes and tasks.


Last Updated:

  1. tomatoboy

    tomatoboy Member This Topic's Starter

    Joined:
    Jun 24, 2009
    Messages:
    8
    Likes Received:
    0
    I would like to ask is there any API can use to query, edit and add Calendar, Notes and Tasks from Android?
     

    Advertisement
  2. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    Briefly put, storage is either direct-to-database in which case only 'your' app can know about it and read the data, or it's via a Content Provider that any app may use to work with the data.

    The page linked to above actually contains a code snippet showing how to access the phone book. As it says on the help page, you can see some of them listed in the android.provider package. You will notice, however, that it's mainly listing contacts, bookmarks, and media providers -- I am not entirely sure how to programmatically obtain a comprehensive listing of all providers currently available on a device, and the necessary names and constants.

    If someone else knows, please do share! Perhaps there's an Open Providers registry somewhere, analogous to Open Intents?
     
  3. tomatoboy

    tomatoboy Member This Topic's Starter

    Joined:
    Jun 24, 2009
    Messages:
    8
    Likes Received:
    0
    I only can use the android.provider package to query contact but not the Calendar, Notes and Tasks. There still don't have such API in android.provider for Calendar, Notes and Tasks. Is there any other way to do it?
     
  4. tomatoboy

    tomatoboy Member This Topic's Starter

    Joined:
    Jun 24, 2009
    Messages:
    8
    Likes Received:
    0
    The problem was fixed. But then I encounter another problem that is can not update/delete the company field.
     
  5. SFLeBrun

    SFLeBrun Member

    Joined:
    Feb 11, 2010
    Messages:
    9
    Likes Received:
    0
    What was the fix?
     

Share This Page

Loading...