I want to open calendar from my app and pass parameter “Date” to this calendar.
And this calendar would display the Date’s corresponding date page.
I have surveyed source code of calendar , but not found ways to use.
public static void openCalendarApp(Context context)
{
Intent intent = context.getPackageManager().getLaunchIntentForPackage("com.android.calendar");
context.startActivity(intent);
}
you can use the calendar view to do this… use the
setDate(long date)method to set the date on the calendar to the date you wantyou can also do this by adding events to the calendar like so
The intent to create a calendar
Seeding Calendar Dates and Times
an example of this can be seen here