The app I'm working on needs to be able to create events in a chosen Calendar and then when the user views these events in their calendar viewing app it offers an option to return to the my app to view more information about it and the data related to it.
Using Calendar Provider I'm able to create the events and I store the Uri to the event for later use/removal but I haven't found a good way to open my app from these events in a calendar viewing app.
The 2 options that I have considered are to include a custom URL in the event description that when clicked will be caught by an intent filter in my app (e.g. myapp://event/1000) or I could set the CUSTOM_APP_PACKAGE and CUSTOM_APP_URI values from CalendarContract when creating the event.
My problem with the first option is that I don't think I can guarantee that the calendar viewing app will correctly treat my custom URL as a link and let the user click on it (didn't work in Google calendar on my tablet). The 2nd option looks more promising but I haven't been able to find much documentation explaining how to use it.
Does anyone know how to properly do this? Any help is appreciated!