I am trying to start a calendar from my application, so I can allow users to add their appointments to it, and then read the application.
I tried the code snippet I found here:
ComponentName cn; Intent i = new Intent(); cn = new ComponentName("com.google.android.calendar", "com.android.calendar.LaunchActivity"); i.setComponent(cn); startActivity(i);
and get an error
07-07 21:05:33.944: ERROR/AndroidRuntime(1089): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.calendar/com.android.calendar.LaunchActivity}; have you declared this activity in your AndroidManifest.xml?
I declared com.android.calendar.LaunchActivity my android manifest file and still not working ...
I think this is not feasible using an emulator? I do this in Android 3.0 (HoneyComb).
source share