Question

Is it possible to launch the Google calendar app from within another app, Or even better launch your own Local Google calender into monthView with only the events you create shown?

I'll be using API 14+, if it is possible can you provide some code or link to an example.

Please bear in-mind I'm still new to programming so please go slowly and explain.

Was it helpful?

Solution

For API 14+ You're best to look at Calendar Provider. This provides intents to read events and view a calendar.

As an example to view a calendar

// A date-time specified in milliseconds since the epoch.
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);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top