Re: [android-developers] Provide events to Calendar-App using ContentProvider
Hi Justin,
first thanks for your answer. I googled a lot before posting for searching a good approach for providing my events to the Android Calendar API.
I think my own solution will be to gather all my events to save them to the calendar using the calendar API if it does not already exists. The event ID then has to be a unique identifier for my data object. This way old events can stay in calendar and new, not existing events can be added this way.
(something like: http://stackoverflow.com/questions/7859005/how-to-read-and-edit-android-calendar-events-using-the-new-android-4-0-ice-cream)
Regards!
-Danny Schimke
Am Freitag, 22. November 2013 17:27:41 UTC+1 schrieb MagouyaWare:
-- first thanks for your answer. I googled a lot before posting for searching a good approach for providing my events to the Android Calendar API.
I think my own solution will be to gather all my events to save them to the calendar using the calendar API if it does not already exists. The event ID then has to be a unique identifier for my data object. This way old events can stay in calendar and new, not existing events can be added this way.
(something like: http://stackoverflow.com/questions/7859005/how-to-read-and-edit-android-calendar-events-using-the-new-android-4-0-ice-cream)
Regards!
-Danny Schimke
Am Freitag, 22. November 2013 17:27:41 UTC+1 schrieb MagouyaWare:
Step 3: Read up on Calendar Provider (the very FIRST link in the above search)Step 1: Read this - http://android-dev-tips-and-Step 2: http://lmgtfy.com/?q=android+tricks.blogspot.com/2012/08/ so-you-need-help.html calendar+content+provider
On Thu, Nov 21, 2013 at 12:22 PM, Danny S. <danny....@googlemail.com> wrote:Hi,--I want to provide events from my application to the standard Android calendar (com.android.com). Now I know, that a ContentProvider is used to give other applications access to application data. First I thought about adding my own ContenProvider to allow the calendar-APP accessing my events indirectly, but this isn't possible, because the calendar doesn't know my provider. Do I have another chance instead of adding events manually to the Android calendar, or is it possible to create my own ContentProvider using the calendar's URI?I need an approach how to keep the sync between the calendar and my applications data. I only want to use a local calendar, no synchronization with a server! If my app becomes new data I need to remove old events and add new ones. Other events should stay in the calendar... Thats what I am thinking about...Thanks very much in advance!-Danny Schimke
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home