ComponentName componentName = new ComponentName("com.android.calendar",
"com.android.calendar.LaunchActivity");
if (componentName != null) {
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
// com.android.providers.calendar.CalendarProvider
intent.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(componentName);
startActivity(intent);
} else {
Log.i("", "98979");
}
LogCat returns the following error:
ERROR/AndroidRuntime(601): Caused by: android.content.ActivityNotFoundException:
Unable to find explicit activity class{com.android.calendar/com.android.calendar.LaunchActivity}
;
have you declared this activity in your AndroidManifest.xml?
What is the new calendar address or package?