How can I help a user sign up for an external calendar in a Google calendar on an Android device?

Currently, my application has the ability to help the user add one event to their Google calendar:

final Intent calendarIntent = new Intent(Intent.ACTION_EDIT)
        .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        .setType("vnd.android.cursor.item/event")
        .putExtra("beginTime", startTime)
        .putExtra("endTime", startTime + 7200000L) // 2 hours
        .putExtra("title", name)
        .putExtra("description", description.toString())
        .putExtra("eventLocation", address);

// later
startActivity(calendarIntent);

However, many users want to automatically add all of their events to their Google calendar. Our server team made the ICS channel, which people can subscribe to an external Google calendar . But this involves copying and pasting URLs and is confusing for end users.

On the Internet, we can associate people with the URL of the form http://www.google.com/calendar/render?cid=OUR_ICS_URL, and they can relatively easily add a feed from there. However, when you visit this URL in the Android browser, you get all kinds of strange pop-ups about mobile and websites for mobile devices, and even advanced Android users in our development team could not figure out how to get the calendar added from there.

Another thing I learned is the Google Calendar API, but it looks like for a method

+5
source share
1 answer
0

All Articles