im about to create an android application that do some actions and profile changing silent/vibration/ringing based on event, the user add the event date and time and chose a profie for this event, the event will be stored on the google calendar which will be sync autmaticlly to the android calendar, so what i want is , i need to listen to the android calendar events so when an event time occured, i check it and check my database and see which profile is for this event and run it or which action i should do, so again my point is
to listen to the calendar events when time occured, anyone can help me with that?
or in another words get the event id from the calendar when this event just happend
thanks
I am not sure if you can listen to Android Calendar. You will have to use the Google Calendar API to retrieve the events for the user.
Here is a sample that uses Calendar API with Android.
I would suggest that you retrieve some of the future events. You can do it periodically say every day or every hour. Sync from the Calendar API instead of the Android Calendar.
Now in your database store the time and action to be taken and when ever an event occurs perform the action.