You know those clock widgets which allow you to open the Calendar by clicking on the date shown on the widget? How can they open the Calendar activity? How would you do if you had a common activity with a button and wanted to open the calendar by clicking on the button?
I searched around but the solutions I found does not work:
Intent i = new Intent();
ComponentName cn = new ComponentName("com.google.android.calendar", "com.android.calendar.LaunchActivity");
i.setComponent(cn);
startActivity(s);
The above returns an exception, basically telling me that the activity I'm launching is not declared.
EDIT: I Want to open the default Calendar Activity, the grid with 01-nov, 02-nov, 03-nov etc. There is a way?
Can someone post an example?