0

I would like to be able to open the user's default calendar on a specified date that might not have an Event ID, with the intended purpose of having him view the his calendar to see if there is no appointments etc. Is this at all possible? I'm currently using this as a guide. But it obviously needs some event ID.

Community
  • 1
  • 1
rubsnick
  • 61
  • 6

1 Answers1

0

After some searching I found this in googles Calendar Provider API

The gist of the code boils down to this.

    long startMillis;
...
Uri.Builder builder = CalendarContract.CONTENT_URI.buildUpon();
builder.appendPath("time");
ContentUris.appendId(builder, startMillis);
Intent intent = new Intent(Intent.ACTION_VIEW)
    .setData(builder.build());
startActivity(intent);
rubsnick
  • 61
  • 6