Hey I'm making a voice assistant application, and want to let the user know about upcoming events so I want to read events using intents. I have been trying to read google calendar API and figure out but I couldn't quite get it. I will greatly appreciate anyone who can help me out...
I have implemented a way to create a new event using:
Intent intent = new Intent(Intent.ACTION_INSERT);
intent.setData(CalendarContract.Events.CONTENT_URI);
intent.putExtra(CalendarContract.Events.TITLE, titleString);
intent.putExtra(CalendarContract.Events.DESCRIPTION, description);
intent.putExtra(CalendarContract.Events.EVENT_LOCATION, "Worldwide");
intent.putExtra(CalendarContract.Events.ALL_DAY, true);
intent.putExtra(Intent.EXTRA_EMAIL, "test@gmail.com");
intent.putExtra(CalendarContract.Events.EVENT_TIMEZONE, timeZone.getID());
intent.putExtra(CalendarContract.Events.HAS_ALARM, 1);